close punchd connection when app is about to quit

This commit is contained in:
Christian Ulrich 2020-10-10 11:40:12 +02:00
parent d9ff4d40cc
commit 1b7cc621db
No known key found for this signature in database
GPG Key ID: 8241BE099775A097
1 changed files with 2 additions and 0 deletions

View File

@ -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()