close punchd connection when app is about to quit
This commit is contained in:
parent
d9ff4d40cc
commit
1b7cc621db
|
@ -245,6 +245,8 @@ proc runApp(serverHostname: string, serverPort: Port, peerId: string,
|
|||
let msg = await sock.recv(4)
|
||||
echo "received message: ", msg
|
||||
sock.close()
|
||||
|
||||
punchdConn.sock.close()
|
||||
|
||||
proc main() =
|
||||
if paramCount() < 3 or paramCount() > 4:
|
||||
|
|
Loading…
Reference in New Issue