[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r26376 - gnunet/src/testbed
From: |
gnunet |
Subject: |
[GNUnet-SVN] r26376 - gnunet/src/testbed |
Date: |
Mon, 11 Mar 2013 14:21:43 +0100 |
Author: harsha
Date: 2013-03-11 14:21:43 +0100 (Mon, 11 Mar 2013)
New Revision: 26376
Modified:
gnunet/src/testbed/gnunet-service-testbed_oc.c
gnunet/src/testbed/testbed_api_testbed.c
Log:
- fix
Modified: gnunet/src/testbed/gnunet-service-testbed_oc.c
===================================================================
--- gnunet/src/testbed/gnunet-service-testbed_oc.c 2013-03-11 10:33:55 UTC
(rev 26375)
+++ gnunet/src/testbed/gnunet-service-testbed_oc.c 2013-03-11 13:21:43 UTC
(rev 26376)
@@ -1414,7 +1414,10 @@
return;
}
if (GNUNET_SCHEDULER_REASON_READ_READY != tc->reason)
+ {
+ GNUNET_break (0);
return;
+ }
rocc->tcc.task = GNUNET_SCHEDULER_add_now (&try_connect_task, &rocc->tcc);
}
Modified: gnunet/src/testbed/testbed_api_testbed.c
===================================================================
--- gnunet/src/testbed/testbed_api_testbed.c 2013-03-11 10:33:55 UTC (rev
26375)
+++ gnunet/src/testbed/testbed_api_testbed.c 2013-03-11 13:21:43 UTC (rev
26376)
@@ -375,7 +375,6 @@
cleanup_task (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
{
struct RunContext *rc = cls;
- struct DLLOperation *dll_op;
unsigned int hid;
GNUNET_assert (GNUNET_SCHEDULER_NO_TASK == rc->register_hosts_task);
@@ -383,15 +382,7 @@
GNUNET_assert (NULL == rc->peers);
GNUNET_assert (NULL == rc->hc_handles);
GNUNET_assert (RC_PEERS_SHUTDOWN == rc->state);
- if (NULL != rc->dll_op_head)
- { /* cancel our pending operations */
- while (NULL != (dll_op = rc->dll_op_head))
- {
- GNUNET_TESTBED_operation_done (dll_op->op);
- GNUNET_CONTAINER_DLL_remove (rc->dll_op_head, rc->dll_op_tail, dll_op);
- GNUNET_free (dll_op);
- }
- }
+ GNUNET_assert (NULL == rc->dll_op_head);
if (NULL != rc->c)
GNUNET_TESTBED_controller_disconnect (rc->c);
if (NULL != rc->cproc)
@@ -471,6 +462,16 @@
GNUNET_TESTBED_cancel_registration (rc->reg_handle);
rc->reg_handle = NULL;
}
+ /* cancel any exiting operations */
+ if (NULL != rc->dll_op_head)
+ {
+ while (NULL != (dll_op = rc->dll_op_head))
+ {
+ GNUNET_TESTBED_operation_done (dll_op->op);
+ GNUNET_CONTAINER_DLL_remove (rc->dll_op_head, rc->dll_op_tail, dll_op);
+ GNUNET_free (dll_op);
+ }
+ }
if (NULL != rc->c)
{
if (NULL != rc->peers)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r26376 - gnunet/src/testbed,
gnunet <=