mirror of
https://github.com/lloeki/nanoserve.git
synced 2025-12-06 11:14:40 +01:00
Silence double log on client disconnect
This commit is contained in:
parent
53988be5ee
commit
324a052913
1 changed files with 2 additions and 1 deletions
|
|
@ -28,8 +28,9 @@ module NanoServe
|
|||
@block.call(conn, y)
|
||||
rescue EOFError
|
||||
logger.debug "#{client}: disconnected"
|
||||
ensure
|
||||
else
|
||||
logger.debug "#{client}: closed"
|
||||
ensure
|
||||
conn.close
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue