diff options
author | lurchi <lurchi@strangeplace.net> | 2018-08-08 20:19:47 +0200 |
---|---|---|
committer | lurchi <lurchi@strangeplace.net> | 2018-08-08 20:19:52 +0200 |
commit | 172522aa5fac784377bee1f375a3ff884e6d37dd (patch) | |
tree | e79e76b2ac3173681adcced2c641c5d8c6e7b02d /examples | |
parent | cbddd7eb561cc9862c8d01df9d0a42a7ee7400d0 (diff) | |
parent | 691133f336ee0094679ab8765863ed280f8e372b (diff) | |
download | gnunet-nim-172522aa5fac784377bee1f375a3ff884e6d37dd.tar.gz gnunet-nim-172522aa5fac784377bee1f375a3ff884e6d37dd.zip |
Merge branch 'master' of ssh://gnunet.org/gnunet-nim
Diffstat (limited to 'examples')
-rw-r--r-- | examples/gnunet_nim.nim | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/examples/gnunet_nim.nim b/examples/gnunet_nim.nim index 70feb28..6b864f1 100644 --- a/examples/gnunet_nim.nim +++ b/examples/gnunet_nim.nim | |||
@@ -39,6 +39,8 @@ proc firstTask(gnunetApp: ref GnunetApplication, | |||
39 | asyncCheck outputFile.write(message) | 39 | asyncCheck outputFile.write(message) |
40 | outputFile.close() | 40 | outputFile.close() |
41 | else: | 41 | else: |
42 | # We're forced to read from stdin like this because it appears | ||
43 | # as though the async library cannot do this natively... | ||
42 | let stdinFile = openAsync("/dev/stdin", fmRead) | 44 | let stdinFile = openAsync("/dev/stdin", fmRead) |
43 | var messagesFuture = cadetChannel.messages.read() | 45 | var messagesFuture = cadetChannel.messages.read() |
44 | var stdinFuture = stdinFile.readline() | 46 | var stdinFuture = stdinFile.readline() |