diff options
author | Sree Harsha Totakura <totakura@in.tum.de> | 2012-12-10 20:49:10 +0000 |
---|---|---|
committer | Sree Harsha Totakura <totakura@in.tum.de> | 2012-12-10 20:49:10 +0000 |
commit | a835acfb34cd0ccc1a0f77a6e1e2754411140abb (patch) | |
tree | d1bf3f5ba394c7e48f3afab153d78b86d84edf96 /src/stream | |
parent | ccc397b474f93319e1778ecab31cd3ef396b3cf6 (diff) | |
download | gnunet-a835acfb34cd0ccc1a0f77a6e1e2754411140abb.tar.gz gnunet-a835acfb34cd0ccc1a0f77a6e1e2754411140abb.zip |
- warning when trying to read when a read handle is already present
Diffstat (limited to 'src/stream')
-rw-r--r-- | src/stream/stream_api.c | 5 |
1 files changed, 4 insertions, 1 deletions
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, | |||
3581 | __func__); | 3581 | __func__); |
3582 | /* Return NULL if there is already a read handle; the user has to cancel that | 3582 | /* Return NULL if there is already a read handle; the user has to cancel that |
3583 | first before continuing or has to wait until it is completed */ | 3583 | first before continuing or has to wait until it is completed */ |
3584 | if (NULL != socket->read_handle) | 3584 | if (NULL != socket->read_handle) |
3585 | { | ||
3586 | GNUNET_break (0); | ||
3585 | return NULL; | 3587 | return NULL; |
3588 | } | ||
3586 | GNUNET_assert (NULL != proc); | 3589 | GNUNET_assert (NULL != proc); |
3587 | switch (socket->state) | 3590 | switch (socket->state) |
3588 | { | 3591 | { |