aboutsummaryrefslogtreecommitdiff
path: root/src/util/connection.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2010-03-12 15:05:05 +0000
committerChristian Grothoff <christian@grothoff.org>2010-03-12 15:05:05 +0000
commit4dd28eb24e1c2a585f842687e12692bf3d81fcff (patch)
tree42338c63f5731bcd189bf4acc7d8f46186be1327 /src/util/connection.c
parentbf72f2545000046bb1e11ee07e9b09fe0479fd67 (diff)
downloadgnunet-4dd28eb24e1c2a585f842687e12692bf3d81fcff.tar.gz
gnunet-4dd28eb24e1c2a585f842687e12692bf3d81fcff.zip
handle being already disconnected
Diffstat (limited to 'src/util/connection.c')
-rw-r--r--src/util/connection.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/util/connection.c b/src/util/connection.c
index c572d02de..10f53dcf9 100644
--- a/src/util/connection.c
+++ b/src/util/connection.c
@@ -1538,8 +1538,11 @@ GNUNET_CONNECTION_notify_transmit_ready_cancel (struct
1538 } 1538 }
1539 else 1539 else
1540 { 1540 {
1541 GNUNET_SCHEDULER_cancel (h->sh->sched, h->sh->write_task); 1541 if (h->sh->write_task != GNUNET_SCHEDULER_NO_TASK)
1542 h->sh->write_task = GNUNET_SCHEDULER_NO_TASK; 1542 {
1543 GNUNET_SCHEDULER_cancel (h->sh->sched, h->sh->write_task);
1544 h->sh->write_task = GNUNET_SCHEDULER_NO_TASK;
1545 }
1543 } 1546 }
1544 h->notify_ready = NULL; 1547 h->notify_ready = NULL;
1545} 1548}