diff options
author | Christian Grothoff <christian@grothoff.org> | 2012-06-18 19:19:41 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2012-06-18 19:19:41 +0000 |
commit | 437a3f820bd18332ad9f4b8a7726835cafdfb08d (patch) | |
tree | e10a975e545bd3fd5a9e3d12400da01822124e4b /src/core | |
parent | 0b3b2d6ba834046a88f64aa65b27ff57d382dce9 (diff) | |
download | gnunet-437a3f820bd18332ad9f4b8a7726835cafdfb08d.tar.gz gnunet-437a3f820bd18332ad9f4b8a7726835cafdfb08d.zip |
-fixing #2431
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/core_api.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/core/core_api.c b/src/core/core_api.c index 42077f3a3..c377aedc1 100644 --- a/src/core/core_api.c +++ b/src/core/core_api.c | |||
@@ -1313,6 +1313,7 @@ GNUNET_CORE_notify_transmit_ready (struct GNUNET_CORE_Handle *handle, int cork, | |||
1313 | th->priority = priority; | 1313 | th->priority = priority; |
1314 | th->msize = notify_size; | 1314 | th->msize = notify_size; |
1315 | th->cork = cork; | 1315 | th->cork = cork; |
1316 | GNUNET_assert (GNUNET_SCHEDULER_NO_TASK == pr->ntr_task); | ||
1316 | pr->ntr_task = | 1317 | pr->ntr_task = |
1317 | GNUNET_SCHEDULER_add_now (&run_request_next_transmission, pr); | 1318 | GNUNET_SCHEDULER_add_now (&run_request_next_transmission, pr); |
1318 | LOG (GNUNET_ERROR_TYPE_DEBUG, "Transmission request added to queue\n"); | 1319 | LOG (GNUNET_ERROR_TYPE_DEBUG, "Transmission request added to queue\n"); |
@@ -1353,6 +1354,11 @@ GNUNET_CORE_notify_transmit_ready_cancel (struct GNUNET_CORE_TransmitHandle *th) | |||
1353 | * us from the 'ready' list */ | 1354 | * us from the 'ready' list */ |
1354 | GNUNET_CONTAINER_DLL_remove (h->ready_peer_head, h->ready_peer_tail, pr); | 1355 | GNUNET_CONTAINER_DLL_remove (h->ready_peer_head, h->ready_peer_tail, pr); |
1355 | } | 1356 | } |
1357 | if (GNUNET_SCHEDULER_NO_TASK != pr->ntr_task) | ||
1358 | { | ||
1359 | GNUNET_SCHEDULER_cancel (pr->ntr_task); | ||
1360 | pr->ntr_task = GNUNET_SCHEDULER_NO_TASK; | ||
1361 | } | ||
1356 | } | 1362 | } |
1357 | 1363 | ||
1358 | 1364 | ||