Remove debugging changes.

This commit is contained in:
cheatfate 2021-01-22 15:02:13 +02:00 committed by zah
parent 13eddf382d
commit fb137112be
2 changed files with 4 additions and 2 deletions

View File

@ -37,7 +37,7 @@ type
## state to be signaled, when event get fired, then all coroutines
## continue proceeds in order, they have entered waiting state.
flag: bool
waiters*: seq[Future[void]]
waiters: seq[Future[void]]
AsyncQueue*[T] = ref object of RootRef
## A queue, useful for coordinating producer and consumer coroutines.

View File

@ -1639,7 +1639,9 @@ proc close*(server: StreamServer) =
## Please note that release of resources is not completed immediately, to be
## sure all resources got released please use ``await server.join()``.
proc continuation(udata: pointer) {.gcsafe.} =
server.clean()
# Stop tracking server
if not(server.loopFuture.finished()):
server.clean()
let r1 = (server.status == ServerStatus.Stopped) and
not(isNil(server.function))