From 83c0fb0fc8ae47e16d5f965f0536e63859f14574 Mon Sep 17 00:00:00 2001 From: Christian Ulrich Date: Wed, 7 Oct 2020 09:42:25 +0200 Subject: [PATCH] Revert "close sockets in example app" This reverts commit 399ad33c99d1669ba68adfe97175a7b2bd60cbf6. --- examples/app/app.nim | 2 -- 1 file changed, 2 deletions(-) diff --git a/examples/app/app.nim b/examples/app/app.nim index 45451e9..41f8f24 100644 --- a/examples/app/app.nim +++ b/examples/app/app.nim @@ -232,7 +232,6 @@ proc runApp(serverHostname: string, serverPort: Port, peerId: string, let msg = await sock.recv(4) echo "received message: ", msg await sock.send("pong") - sock.close() else: # initiate a new connection @@ -244,7 +243,6 @@ proc runApp(serverHostname: string, serverPort: Port, peerId: string, await sock.send("ping") let msg = await sock.recv(4) echo "received message: ", msg - sock.close() proc main() = if paramCount() < 3 or paramCount() > 4: