diff options
author | Christian Grothoff <christian@grothoff.org> | 2012-07-05 17:22:58 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2012-07-05 17:22:58 +0000 |
commit | 75d185ae2f305e7f751c17ce2a96e9c2cc6b3464 (patch) | |
tree | 6301796830150a6225da3acf8eddb3a908e9c8b3 /src/fs/gnunet-service-fs_pe.c | |
parent | 86be3237abd7ff9bf06f1911802e8a38fb985650 (diff) | |
download | gnunet-75d185ae2f305e7f751c17ce2a96e9c2cc6b3464.tar.gz gnunet-75d185ae2f305e7f751c17ce2a96e9c2cc6b3464.zip |
-cleanup
Diffstat (limited to 'src/fs/gnunet-service-fs_pe.c')
-rw-r--r-- | src/fs/gnunet-service-fs_pe.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/fs/gnunet-service-fs_pe.c b/src/fs/gnunet-service-fs_pe.c index c70f3cc84..904d02832 100644 --- a/src/fs/gnunet-service-fs_pe.c +++ b/src/fs/gnunet-service-fs_pe.c | |||
@@ -439,7 +439,7 @@ schedule_peer_transmission (void *cls, | |||
439 | struct GNUNET_TIME_Relative delay; | 439 | struct GNUNET_TIME_Relative delay; |
440 | 440 | ||
441 | pp->task = GNUNET_SCHEDULER_NO_TASK; | 441 | pp->task = GNUNET_SCHEDULER_NO_TASK; |
442 | if (pp->pth != NULL) | 442 | if (NULL != pp->pth) |
443 | { | 443 | { |
444 | GSF_peer_transmit_cancel_ (pp->pth); | 444 | GSF_peer_transmit_cancel_ (pp->pth); |
445 | pp->pth = NULL; | 445 | pp->pth = NULL; |
@@ -641,7 +641,10 @@ GSF_plan_notify_peer_disconnect_ (const struct GSF_ConnectedPeer *cp) | |||
641 | GNUNET_CONTAINER_multihashmap_remove (plans, &id.hashPubKey, | 641 | GNUNET_CONTAINER_multihashmap_remove (plans, &id.hashPubKey, |
642 | pp)); | 642 | pp)); |
643 | if (NULL != pp->pth) | 643 | if (NULL != pp->pth) |
644 | { | ||
644 | GSF_peer_transmit_cancel_ (pp->pth); | 645 | GSF_peer_transmit_cancel_ (pp->pth); |
646 | pp->pth = NULL; | ||
647 | } | ||
645 | if (GNUNET_SCHEDULER_NO_TASK != pp->task) | 648 | if (GNUNET_SCHEDULER_NO_TASK != pp->task) |
646 | { | 649 | { |
647 | GNUNET_SCHEDULER_cancel (pp->task); | 650 | GNUNET_SCHEDULER_cancel (pp->task); |