projects
/
oweals
/
gnunet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
764cc85
)
-trying to fix #2335
author
Christian Grothoff
<christian@grothoff.org>
Wed, 9 May 2012 20:28:06 +0000
(20:28 +0000)
committer
Christian Grothoff
<christian@grothoff.org>
Wed, 9 May 2012 20:28:06 +0000
(20:28 +0000)
src/util/server.c
patch
|
blob
|
history
diff --git
a/src/util/server.c
b/src/util/server.c
index fab68d46a68eae6289996cb86d1eb776522628c8..0285b82aec607963f73aa10d02f67fde4ef9b2e6 100644
(file)
--- a/
src/util/server.c
+++ b/
src/util/server.c
@@
-1046,6
+1046,7
@@
restart_processing (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
{
struct GNUNET_SERVER_Client *client = cls;
+ GNUNET_assert (GNUNET_YES != client->shutdown_now);
client->restart_task = GNUNET_SCHEDULER_NO_TASK;
if (GNUNET_NO == client->receive_pending)
{
@@
-1488,7
+1489,7
@@
GNUNET_SERVER_receive_done (struct GNUNET_SERVER_Client *client, int success)
{
LOG (GNUNET_ERROR_TYPE_DEBUG,
"GNUNET_SERVER_receive_done called with failure indication\n");
- if (
client->reference_count > 0
)
+ if (
(client->reference_count > 0) || (client->suspended > 0)
)
client->shutdown_now = GNUNET_YES;
else
GNUNET_SERVER_client_disconnect (client);