summary refs log tree commit diff stats
path: root/lib/pure
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2020-07-08 08:21:55 +0200
committerGitHub <noreply@github.com>2020-07-08 08:21:55 +0200
commit87f6a9592cbbace5e8f0d647841b4490bb7c0f1f (patch)
tree88873df2a2c2337199397b93f367e1511876120a /lib/pure
parente82a14b2735e58a4230d79820465753e2592cd2b (diff)
downloadNim-87f6a9592cbbace5e8f0d647841b4490bb7c0f1f.tar.gz
fixes #14402 (#14908)
* fixes #14402

* added a test case
Diffstat (limited to 'lib/pure')
-rw-r--r--lib/pure/asyncstreams.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pure/asyncstreams.nim b/lib/pure/asyncstreams.nim
index 44e73003e..393262c4f 100644
--- a/lib/pure/asyncstreams.nim
+++ b/lib/pure/asyncstreams.nim
@@ -96,7 +96,7 @@ proc read*[T](future: FutureStream[T]): owned(Future[(bool, T)]) =
       if resFut.finished: return
 
       # We don't want this callback called again.
-      future.cb = nil
+      #future.cb = nil
 
       # The return value depends on whether the FutureStream has finished.
       var res: (bool, T)