fix nil condition
This commit is contained in:
parent
6cbcc7859e
commit
00fbc9246e
|
@ -57,7 +57,7 @@ method close*(t: TcpTransport): Future[void] {.async, gcsafe.} =
|
||||||
await procCall Transport(t).close() # call base
|
await procCall Transport(t).close() # call base
|
||||||
|
|
||||||
# server can be nil
|
# server can be nil
|
||||||
if isNil(t.server):
|
if not isNil(t.server):
|
||||||
t.server.stop()
|
t.server.stop()
|
||||||
t.server.close()
|
t.server.close()
|
||||||
await t.server.join()
|
await t.server.join()
|
||||||
|
|
Loading…
Reference in New Issue