aboutsummaryrefslogtreecommitdiff
path: root/src/util/service.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/service.c')
-rw-r--r--src/util/service.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/util/service.c b/src/util/service.c
index 5be6bc33f..d49ad4f2a 100644
--- a/src/util/service.c
+++ b/src/util/service.c
@@ -187,7 +187,7 @@ struct GNUNET_SERVICE_Context
187 /** 187 /**
188 * Task ID of the shutdown task. 188 * Task ID of the shutdown task.
189 */ 189 */
190 GNUNET_SCHEDULER_TaskIdentifier shutdown_task; 190 struct GNUNET_SCHEDULER_Task * shutdown_task;
191 191
192 /** 192 /**
193 * Idle timeout for server. 193 * Idle timeout for server.
@@ -1134,7 +1134,7 @@ shutdown_task (void *cls,
1134 struct GNUNET_SERVICE_Context *service = cls; 1134 struct GNUNET_SERVICE_Context *service = cls;
1135 struct GNUNET_SERVER_Handle *server = service->server; 1135 struct GNUNET_SERVER_Handle *server = service->server;
1136 1136
1137 service->shutdown_task = GNUNET_SCHEDULER_NO_TASK; 1137 service->shutdown_task = NULL;
1138 if (0 != (service->options & GNUNET_SERVICE_OPTION_SOFT_SHUTDOWN)) 1138 if (0 != (service->options & GNUNET_SERVICE_OPTION_SOFT_SHUTDOWN))
1139 GNUNET_SERVER_stop_listening (server); 1139 GNUNET_SERVER_stop_listening (server);
1140 else 1140 else
@@ -1675,10 +1675,10 @@ GNUNET_SERVICE_stop (struct GNUNET_SERVICE_Context *sctx)
1675 } 1675 }
1676 } 1676 }
1677#endif 1677#endif
1678 if (GNUNET_SCHEDULER_NO_TASK != sctx->shutdown_task) 1678 if (NULL != sctx->shutdown_task)
1679 { 1679 {
1680 GNUNET_SCHEDULER_cancel (sctx->shutdown_task); 1680 GNUNET_SCHEDULER_cancel (sctx->shutdown_task);
1681 sctx->shutdown_task = GNUNET_SCHEDULER_NO_TASK; 1681 sctx->shutdown_task = NULL;
1682 } 1682 }
1683 if (NULL != sctx->server) 1683 if (NULL != sctx->server)
1684 GNUNET_SERVER_destroy (sctx->server); 1684 GNUNET_SERVER_destroy (sctx->server);