fix nil condition

This commit is contained in:
Dmitriy Ryajov 2020-04-07 09:49:56 -06:00
parent 6cbcc7859e
commit 00fbc9246e
1 changed files with 1 additions and 1 deletions

View File

@ -57,7 +57,7 @@ method close*(t: TcpTransport): Future[void] {.async, gcsafe.} =
await procCall Transport(t).close() # call base
# server can be nil
if isNil(t.server):
if not isNil(t.server):
t.server.stop()
t.server.close()
await t.server.join()