summary refs log tree commit diff stats
path: root/lib/pure
diff options
context:
space:
mode:
authorDominik Picheta <dominikpicheta@googlemail.com>2014-09-09 11:43:54 +0100
committerDominik Picheta <dominikpicheta@googlemail.com>2014-09-09 11:43:54 +0100
commit4db65350250c3350351298d9962a9e66404b3ef6 (patch)
treea2ff02d27bae2d10e8d65e589edff5f2b3065f2d /lib/pure
parent56f11e2c955b710000374d7eb20a3e1fe3a075f7 (diff)
downloadNim-4db65350250c3350351298d9962a9e66404b3ef6.tar.gz
Fixes for new comment handling.
Diffstat (limited to 'lib/pure')
-rw-r--r--lib/pure/asyncdispatch.nim1
-rw-r--r--lib/pure/asyncio.nim1
2 files changed, 2 insertions, 0 deletions
diff --git a/lib/pure/asyncdispatch.nim b/lib/pure/asyncdispatch.nim
index f3d37f9d2..5363d8862 100644
--- a/lib/pure/asyncdispatch.nim
+++ b/lib/pure/asyncdispatch.nim
@@ -796,6 +796,7 @@ else:
       else:
         # FD no longer a part of the selector. Likely been closed
         # (e.g. socket disconnected).
+        discard
 
     processTimers(p)
   
diff --git a/lib/pure/asyncio.nim b/lib/pure/asyncio.nim
index 9299b7370..10be5e409 100644
--- a/lib/pure/asyncio.nim
+++ b/lib/pure/asyncio.nim
@@ -247,6 +247,7 @@ proc asyncSockHandleWrite(h: RootRef) =
           # Apparently the socket cannot be written to. Even though select
           # just told us that it can be... This used to be an assert. Just
           # do nothing instead.
+          discard
         elif bytesSent != sock.sendBuffer.len:
           sock.sendBuffer = sock.sendBuffer[bytesSent .. -1]
         elif bytesSent == sock.sendBuffer.len: