diff options
author | Christian Grothoff <christian@grothoff.org> | 2010-11-24 16:34:32 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2010-11-24 16:34:32 +0000 |
commit | 635353dfc45ff76838db307c1df9faf56b3e188f (patch) | |
tree | 67a327ed246283da3e45f14d19fe6de62b33e242 | |
parent | 5312e9c2370bbb3338231eceba58f8a583395dd3 (diff) | |
download | gnunet-635353dfc45ff76838db307c1df9faf56b3e188f.tar.gz gnunet-635353dfc45ff76838db307c1df9faf56b3e188f.zip |
random hack - 1618
-rw-r--r-- | src/core/gnunet-service-core.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/core/gnunet-service-core.c b/src/core/gnunet-service-core.c index a13f3a213..f28f2001e 100644 --- a/src/core/gnunet-service-core.c +++ b/src/core/gnunet-service-core.c | |||
@@ -2757,7 +2757,7 @@ notify_transport_connect_done (void *cls, size_t size, void *buf) | |||
2757 | /* transport should only call us to transmit a message after | 2757 | /* transport should only call us to transmit a message after |
2758 | * telling us about a successful connection to the respective peer */ | 2758 | * telling us about a successful connection to the respective peer */ |
2759 | #if DEBUG_CORE | 2759 | #if DEBUG_CORE |
2760 | GNUNET_log(GNUNET_ERROR_TYPE_DEBUG, "Timeout on notify connect!\n"); | 2760 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Timeout on notify connect!\n"); |
2761 | #endif | 2761 | #endif |
2762 | return 0; | 2762 | return 0; |
2763 | } | 2763 | } |
@@ -4195,6 +4195,11 @@ handle_transport_notify_disconnect (void *cls, | |||
4195 | cnm.peer = *peer; | 4195 | cnm.peer = *peer; |
4196 | send_to_all_clients (&cnm.header, GNUNET_NO, GNUNET_CORE_OPTION_SEND_DISCONNECT); | 4196 | send_to_all_clients (&cnm.header, GNUNET_NO, GNUNET_CORE_OPTION_SEND_DISCONNECT); |
4197 | } | 4197 | } |
4198 | if (NULL != n->th) | ||
4199 | { | ||
4200 | GNUNET_TRANSPORT_notify_transmit_ready_cancel (n->th); | ||
4201 | n->th = NULL; | ||
4202 | } | ||
4198 | n->is_connected = GNUNET_NO; | 4203 | n->is_connected = GNUNET_NO; |
4199 | n->status = PEER_STATE_DOWN; | 4204 | n->status = PEER_STATE_DOWN; |
4200 | while (NULL != (car = n->active_client_request_head)) | 4205 | while (NULL != (car = n->active_client_request_head)) |