[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r31274 - gnunet/src/statistics
From: |
gnunet |
Subject: |
[GNUnet-SVN] r31274 - gnunet/src/statistics |
Date: |
Wed, 11 Dec 2013 13:55:59 +0100 |
Author: grothoff
Date: 2013-12-11 13:55:59 +0100 (Wed, 11 Dec 2013)
New Revision: 31274
Modified:
gnunet/src/statistics/statistics_api.c
Log:
-do disconnect after continuations, to hopefullyf ix #3194
Modified: gnunet/src/statistics/statistics_api.c
===================================================================
--- gnunet/src/statistics/statistics_api.c 2013-12-11 12:49:07 UTC (rev
31273)
+++ gnunet/src/statistics/statistics_api.c 2013-12-11 12:55:59 UTC (rev
31274)
@@ -387,11 +387,6 @@
GNUNET_CLIENT_notify_transmit_ready_cancel (h->th);
h->th = NULL;
}
- if (NULL != h->client)
- {
- GNUNET_CLIENT_disconnect (h->client);
- h->client = NULL;
- }
h->receiving = GNUNET_NO;
if (NULL != (c = h->current))
{
@@ -401,6 +396,11 @@
c->cont (c->cls, GNUNET_SYSERR);
free_action_item (c);
}
+ if (NULL != h->client)
+ {
+ GNUNET_CLIENT_disconnect (h->client);
+ h->client = NULL;
+ }
}
@@ -408,7 +408,7 @@
* Try to (re)connect to the statistics service.
*
* @param h statistics handle to reconnect
- * @return GNUNET_YES on success, GNUNET_NO on failure.
+ * @return #GNUNET_YES on success, #GNUNET_NO on failure.
*/
static int
try_connect (struct GNUNET_STATISTICS_Handle *h)
@@ -433,7 +433,7 @@
GNUNET_CONTAINER_DLL_remove (h->action_head,
h->action_tail,
gh);
- free_action_item (gh);
+ free_action_item (gh);
}
}
for (i = 0; i < h->watches_size; i++)
@@ -1266,7 +1266,7 @@
GNUNET_free (w);
handle->watches[i] = NULL;
return GNUNET_OK;
- }
+ }
}
return GNUNET_SYSERR;
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r31274 - gnunet/src/statistics,
gnunet <=