don't send close message if remote closed
This commit is contained in:
parent
f6c4d2130a
commit
f9ad113d11
|
@ -62,6 +62,7 @@ proc newChannel*(id: uint,
|
|||
result.initBufferStream(writeHandler, size)
|
||||
|
||||
proc closeMessage(s: LPChannel) {.async.} =
|
||||
if not s.closed:
|
||||
await s.conn.writeMsg(s.id, s.closeCode) # write header
|
||||
|
||||
proc closedByRemote*(s: LPChannel) {.async.} =
|
||||
|
|
Loading…
Reference in New Issue