- warning when trying to read when a read handle is already present
authorSree Harsha Totakura <totakura@in.tum.de>
Mon, 10 Dec 2012 20:49:10 +0000 (20:49 +0000)
committerSree Harsha Totakura <totakura@in.tum.de>
Mon, 10 Dec 2012 20:49:10 +0000 (20:49 +0000)
src/stream/stream_api.c

index a0be54d43e8caa27ddfd68552070538e47efdf5d..9c6056c01295445832923d80f7c416b4560528ed 100644 (file)
@@ -3581,8 +3581,11 @@ GNUNET_STREAM_read (struct GNUNET_STREAM_Socket *socket,
        __func__);
   /* Return NULL if there is already a read handle; the user has to cancel that
      first before continuing or has to wait until it is completed */
-  if (NULL != socket->read_handle) 
+  if (NULL != socket->read_handle)
+  {
+    GNUNET_break (0);
     return NULL;
+  }
   GNUNET_assert (NULL != proc);
   switch (socket->state)
   {