From: Sree Harsha Totakura Date: Mon, 10 Dec 2012 20:49:10 +0000 (+0000) Subject: - warning when trying to read when a read handle is already present X-Git-Tag: initial-import-from-subversion-38251~10508 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=a835acfb34cd0ccc1a0f77a6e1e2754411140abb;p=oweals%2Fgnunet.git - warning when trying to read when a read handle is already present --- diff --git a/src/stream/stream_api.c b/src/stream/stream_api.c index a0be54d43..9c6056c01 100644 --- a/src/stream/stream_api.c +++ b/src/stream/stream_api.c @@ -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) {