diff options
author | lurchi <lurchi@strangeplace.net> | 2019-06-24 13:52:29 +0200 |
---|---|---|
committer | lurchi <lurchi@strangeplace.net> | 2019-06-24 13:52:37 +0200 |
commit | b765f12e5587507c39e8a8282727eb3e205d1a3b (patch) | |
tree | 8a9ddd0a750b7295788a9f024fa32b766cc79b62 | |
parent | eca59367655fd1a744e114584b121c3e147c2bdd (diff) | |
download | gnunet-nim-b765f12e5587507c39e8a8282727eb3e205d1a3b.tar.gz gnunet-nim-b765f12e5587507c39e8a8282727eb3e205d1a3b.zip |
Revert "Revert "Revert "workaround not needed anymore?"""
This reverts commit eca59367655fd1a744e114584b121c3e147c2bdd.
-rw-r--r-- | src/gnunet_nim/cadet.nim | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gnunet_nim/cadet.nim b/src/gnunet_nim/cadet.nim index 665b5cd..b9fe0b7 100644 --- a/src/gnunet_nim/cadet.nim +++ b/src/gnunet_nim/cadet.nim | |||
@@ -27,6 +27,9 @@ proc channelDisconnectCb(cls: pointer, | |||
27 | let channel = cast[ptr CadetChannel](cls) | 27 | let channel = cast[ptr CadetChannel](cls) |
28 | channel.handle = nil | 28 | channel.handle = nil |
29 | channel.messages.complete() | 29 | channel.messages.complete() |
30 | # workaround: if poll in main is called with a timeout > 0, the stream reader is | ||
31 | # not notified about the end of the stream (Nim bug?). So call poll here, too. | ||
32 | poll(0) | ||
30 | 33 | ||
31 | proc channelConnectCb(cls: pointer, | 34 | proc channelConnectCb(cls: pointer, |
32 | gnunetChannel: ptr GNUNET_CADET_Channel, | 35 | gnunetChannel: ptr GNUNET_CADET_Channel, |