aboutsummaryrefslogtreecommitdiff
path: root/src/set/set_api.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/set/set_api.c')
-rw-r--r--src/set/set_api.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/set/set_api.c b/src/set/set_api.c
index 453a235b2..0327daab1 100644
--- a/src/set/set_api.c
+++ b/src/set/set_api.c
@@ -204,7 +204,7 @@ struct GNUNET_SET_ListenHandle
204 /** 204 /**
205 * Task for reconnecting when the listener fails. 205 * Task for reconnecting when the listener fails.
206 */ 206 */
207 GNUNET_SCHEDULER_TaskIdentifier reconnect_task; 207 struct GNUNET_SCHEDULER_Task * reconnect_task;
208 208
209 /** 209 /**
210 * Operation we listen for. 210 * Operation we listen for.
@@ -786,7 +786,7 @@ listen_connect (void *cls,
786 "Listener not reconnecting due to shutdown\n"); 786 "Listener not reconnecting due to shutdown\n");
787 return; 787 return;
788 } 788 }
789 lh->reconnect_task = GNUNET_SCHEDULER_NO_TASK; 789 lh->reconnect_task = NULL;
790 GNUNET_assert (NULL == lh->client); 790 GNUNET_assert (NULL == lh->client);
791 lh->client = GNUNET_CLIENT_connect ("set", lh->cfg); 791 lh->client = GNUNET_CLIENT_connect ("set", lh->cfg);
792 if (NULL == lh->client) 792 if (NULL == lh->client)
@@ -860,10 +860,10 @@ GNUNET_SET_listen_cancel (struct GNUNET_SET_ListenHandle *lh)
860 GNUNET_CLIENT_disconnect (lh->client); 860 GNUNET_CLIENT_disconnect (lh->client);
861 lh->client = NULL; 861 lh->client = NULL;
862 } 862 }
863 if (GNUNET_SCHEDULER_NO_TASK != lh->reconnect_task) 863 if (NULL != lh->reconnect_task)
864 { 864 {
865 GNUNET_SCHEDULER_cancel (lh->reconnect_task); 865 GNUNET_SCHEDULER_cancel (lh->reconnect_task);
866 lh->reconnect_task = GNUNET_SCHEDULER_NO_TASK; 866 lh->reconnect_task = NULL;
867 } 867 }
868 GNUNET_free (lh); 868 GNUNET_free (lh);
869} 869}