summaryrefslogtreecommitdiff
path: root/src/transport/gnunet-service-transport_neighbours.c
diff options
context:
space:
mode:
authorDavid Barksdale <amatus.amongus@gmail.com>2015-06-24 19:05:12 +0000
committerDavid Barksdale <amatus.amongus@gmail.com>2015-06-24 19:05:12 +0000
commit2f66ce4a1478b52ba5c725a54b0a336f94885496 (patch)
tree73bc0d305dfd5214be74822cdea75daae9a5bd07 /src/transport/gnunet-service-transport_neighbours.c
parent709fce81bdd56b59fc04edd07c70ff73c18422a5 (diff)
Avoid trying to disconnect a neighbour twice
Diffstat (limited to 'src/transport/gnunet-service-transport_neighbours.c')
-rw-r--r--src/transport/gnunet-service-transport_neighbours.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/transport/gnunet-service-transport_neighbours.c b/src/transport/gnunet-service-transport_neighbours.c
index d7ec1e195..d8da8235b 100644
--- a/src/transport/gnunet-service-transport_neighbours.c
+++ b/src/transport/gnunet-service-transport_neighbours.c
@@ -3770,7 +3770,11 @@ GST_neighbours_handle_disconnect_message (const struct GNUNET_PeerIdentity *peer
GNUNET_break_op (0);
return;
}
- n->delayed_disconnect_task = GNUNET_SCHEDULER_add_now (&delayed_disconnect, n);
+ if (NULL == n->delayed_disconnect_task)
+ {
+ n->delayed_disconnect_task = GNUNET_SCHEDULER_add_now (&delayed_disconnect,
+ n);
+ }
}