aboutsummaryrefslogtreecommitdiff
path: root/src/util
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2016-09-20 09:55:42 +0000
committerChristian Grothoff <christian@grothoff.org>2016-09-20 09:55:42 +0000
commita9f53345421cddea37be81e59d6fb56a9f095d6c (patch)
tree92ab7779bfc098fdb5ea8ef3955375d5f332020d /src/util
parentc284a3bb84a91678707bbae3c93106bd4e84226e (diff)
downloadgnunet-a9f53345421cddea37be81e59d6fb56a9f095d6c.tar.gz
gnunet-a9f53345421cddea37be81e59d6fb56a9f095d6c.zip
-fix minor issues
Diffstat (limited to 'src/util')
-rw-r--r--src/util/service_new.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/util/service_new.c b/src/util/service_new.c
index 123b40d5b..e9c986c43 100644
--- a/src/util/service_new.c
+++ b/src/util/service_new.c
@@ -384,9 +384,10 @@ service_main (void *cls)
384 GNUNET_SCHEDULER_add_shutdown (&service_shutdown, 384 GNUNET_SCHEDULER_add_shutdown (&service_shutdown,
385 sh); 385 sh);
386 GNUNET_SERVICE_resume (sh); 386 GNUNET_SERVICE_resume (sh);
387 sh->service_init_cb (sh->cb_cls, 387 if (NULL != sh->service_init_cb)
388 sh->cfg, 388 sh->service_init_cb (sh->cb_cls,
389 sh); 389 sh->cfg,
390 sh);
390} 391}
391 392
392 393
@@ -2250,6 +2251,8 @@ resume_client_receive (void *cls)
2250 if (GNUNET_YES == c->needs_continue) 2251 if (GNUNET_YES == c->needs_continue)
2251 return; /* #GNUNET_MST_next() did give a message to the client */ 2252 return; /* #GNUNET_MST_next() did give a message to the client */
2252 /* need to receive more data from the network first */ 2253 /* need to receive more data from the network first */
2254 if (NULL != c->recv_task)
2255 return;
2253 c->recv_task 2256 c->recv_task
2254 = GNUNET_SCHEDULER_add_read_net (GNUNET_TIME_UNIT_FOREVER_REL, 2257 = GNUNET_SCHEDULER_add_read_net (GNUNET_TIME_UNIT_FOREVER_REL,
2255 c->sock, 2258 c->sock,