projects
/
oweals
/
gnunet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Avoid trying to disconnect a neighbour twice
[oweals/gnunet.git]
/
src
/
transport
/
gnunet-service-transport_neighbours.c
diff --git
a/src/transport/gnunet-service-transport_neighbours.c
b/src/transport/gnunet-service-transport_neighbours.c
index d7ec1e195615ec4ed95834898645089219d77262..d8da8235b1cd6e6a671a3303881d0dd27c66399c 100644
(file)
--- 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);
+ }
}