From 4a478d5af288d63d59b2b1abde76b13b6b5d955a Mon Sep 17 00:00:00 2001 From: Bart Polot Date: Thu, 26 Jul 2012 15:57:47 +0000 Subject: [PATCH] - do clear th ALWAYS after calling notify_cb --- src/mesh/mesh_api.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/mesh/mesh_api.c b/src/mesh/mesh_api.c index 040b87d71..565e81d63 100644 --- a/src/mesh/mesh_api.c +++ b/src/mesh/mesh_api.c @@ -1207,6 +1207,7 @@ send_callback (void *cls, size_t size, void *buf) { LOG (GNUNET_ERROR_TYPE_DEBUG, "Received NULL send callback\n"); reconnect (h); + h->th = NULL; return 0; } tsize = 0; @@ -1316,6 +1317,7 @@ send_callback (void *cls, size_t size, void *buf) tsize += psize; } LOG (GNUNET_ERROR_TYPE_DEBUG, " total size: %u\n", tsize); + h->th = NULL; if (NULL != h->th_head) { int request = GNUNET_NO; @@ -1337,7 +1339,6 @@ send_callback (void *cls, size_t size, void *buf) break; } } - h->th = NULL; if (GNUNET_YES == request) { -- 2.25.1