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