aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlurchi <lurchi@strangeplace.net>2019-06-24 13:43:41 +0200
committerlurchi <lurchi@strangeplace.net>2019-06-24 13:43:41 +0200
commiteca59367655fd1a744e114584b121c3e147c2bdd (patch)
tree83778f7ed421e0f543ce30c53ac3eacdfa9ca7d9
parentb2618ae095b2678381ebbe7997b1392646846c07 (diff)
downloadgnunet-nim-eca59367655fd1a744e114584b121c3e147c2bdd.tar.gz
gnunet-nim-eca59367655fd1a744e114584b121c3e147c2bdd.zip
Revert "Revert "workaround not needed anymore?""
This reverts commit b2618ae095b2678381ebbe7997b1392646846c07.
-rw-r--r--src/gnunet_nim/cadet.nim3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/gnunet_nim/cadet.nim b/src/gnunet_nim/cadet.nim
index b9fe0b7..665b5cd 100644
--- a/src/gnunet_nim/cadet.nim
+++ b/src/gnunet_nim/cadet.nim
@@ -27,9 +27,6 @@ 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)
33 30
34proc channelConnectCb(cls: pointer, 31proc channelConnectCb(cls: pointer,
35 gnunetChannel: ptr GNUNET_CADET_Channel, 32 gnunetChannel: ptr GNUNET_CADET_Channel,