Remove debugging changes.
This commit is contained in:
parent
13eddf382d
commit
fb137112be
|
@ -37,7 +37,7 @@ type
|
||||||
## state to be signaled, when event get fired, then all coroutines
|
## state to be signaled, when event get fired, then all coroutines
|
||||||
## continue proceeds in order, they have entered waiting state.
|
## continue proceeds in order, they have entered waiting state.
|
||||||
flag: bool
|
flag: bool
|
||||||
waiters*: seq[Future[void]]
|
waiters: seq[Future[void]]
|
||||||
|
|
||||||
AsyncQueue*[T] = ref object of RootRef
|
AsyncQueue*[T] = ref object of RootRef
|
||||||
## A queue, useful for coordinating producer and consumer coroutines.
|
## A queue, useful for coordinating producer and consumer coroutines.
|
||||||
|
|
|
@ -1639,7 +1639,9 @@ proc close*(server: StreamServer) =
|
||||||
## Please note that release of resources is not completed immediately, to be
|
## Please note that release of resources is not completed immediately, to be
|
||||||
## sure all resources got released please use ``await server.join()``.
|
## sure all resources got released please use ``await server.join()``.
|
||||||
proc continuation(udata: pointer) {.gcsafe.} =
|
proc continuation(udata: pointer) {.gcsafe.} =
|
||||||
server.clean()
|
# Stop tracking server
|
||||||
|
if not(server.loopFuture.finished()):
|
||||||
|
server.clean()
|
||||||
|
|
||||||
let r1 = (server.status == ServerStatus.Stopped) and
|
let r1 = (server.status == ServerStatus.Stopped) and
|
||||||
not(isNil(server.function))
|
not(isNil(server.function))
|
||||||
|
|
Loading…
Reference in New Issue