aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDavid Barksdale <amatus@amat.us>2018-01-02 11:34:45 -0600
committerDavid Barksdale <amatus@amat.us>2018-01-02 11:36:58 -0600
commit852bc17cdf0a1ebb14d1f23e418b3d26c041534e (patch)
tree8af9064c46c2076db82c1dcb3d11e5cc7a9f7373 /src
parent61f532f18450e0d7c72f0c17f4a20b5854cf53bf (diff)
downloadgnunet-852bc17cdf0a1ebb14d1f23e418b3d26c041534e.tar.gz
gnunet-852bc17cdf0a1ebb14d1f23e418b3d26c041534e.zip
Fix double-scheduling of shutdown task
Diffstat (limited to 'src')
-rw-r--r--src/util/resolver_api.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/util/resolver_api.c b/src/util/resolver_api.c
index 11b8134d6..84f541ba0 100644
--- a/src/util/resolver_api.c
+++ b/src/util/resolver_api.c
@@ -414,10 +414,11 @@ process_requests ()
414 { 414 {
415 /* nothing to do, release socket really soon if there is nothing 415 /* nothing to do, release socket really soon if there is nothing
416 * else happening... */ 416 * else happening... */
417 s_task = 417 if (NULL == s_task)
418 GNUNET_SCHEDULER_add_delayed (GNUNET_TIME_UNIT_MILLISECONDS, 418 s_task =
419 &shutdown_task, 419 GNUNET_SCHEDULER_add_delayed (GNUNET_TIME_UNIT_MILLISECONDS,
420 NULL); 420 &shutdown_task,
421 NULL);
421 return; 422 return;
422 } 423 }
423 if (GNUNET_NO != rh->was_transmitted) 424 if (GNUNET_NO != rh->was_transmitted)