diff --git a/punchd.nim b/punchd.nim index 91afb0d..5271112 100644 --- a/punchd.nim +++ b/punchd.nim @@ -77,6 +77,7 @@ proc handleRequests(punchd: Punchd, userSock: AsyncSocket) {.async.} = break let line = await userSock.recvLine(maxLength = 400) if line.len == 0: + userSock.close() break asyncCheck punchd.handleRequest(line, userSock)