Revert "delete attempts in proc cleanup"
This reverts commit af244030bf
.
This commit is contained in:
parent
af244030bf
commit
12992f5ced
|
@ -174,10 +174,10 @@ proc predictPortRange(dstPorts: seq[Port]): seq[Port] =
|
|||
result[i] = Port(basePort + i.uint16)
|
||||
|
||||
proc cleanup*(puncher: TcpSyniPuncher) {.async.} =
|
||||
while puncher.connectAttempts.len() != 0:
|
||||
puncher.connectAttempts.pop().deleteFirewallRules()
|
||||
while puncher.acceptAttempts.len() != 0:
|
||||
puncher.connectAttempts.pop().deleteFirewallRules()
|
||||
for attempt in puncher.connectAttempts:
|
||||
await attempt.deleteFirewallRules()
|
||||
for attempt in puncher.acceptAttempts:
|
||||
await attempt.deleteFirewallRules()
|
||||
|
||||
proc doConnect(srcIp: IpAddress, srcPort: Port, dstIp: IpAddress, dstPort: Port,
|
||||
future: Future[AsyncSocket]) {.async.} =
|
||||
|
|
Loading…
Reference in New Issue