mirror of https://github.com/vacp2p/nim-libp2p.git
correctly close stream
This commit is contained in:
parent
47b6b89fc5
commit
139b8a752b
|
@ -56,6 +56,4 @@ method close*(s: ChronosStream) {.async.} =
|
||||||
await s.writer.closeWait()
|
await s.writer.closeWait()
|
||||||
|
|
||||||
await s.client.closeWait()
|
await s.client.closeWait()
|
||||||
s.server.stop()
|
|
||||||
s.server.close()
|
|
||||||
s.closed = true
|
s.closed = true
|
Loading…
Reference in New Issue