diff options
Diffstat (limited to 'src/rps/gnunet-service-rps.c')
-rw-r--r-- | src/rps/gnunet-service-rps.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/rps/gnunet-service-rps.c b/src/rps/gnunet-service-rps.c index 09ed5de48..e09db5ca6 100644 --- a/src/rps/gnunet-service-rps.c +++ b/src/rps/gnunet-service-rps.c | |||
@@ -695,7 +695,7 @@ float beta; | |||
695 | /** | 695 | /** |
696 | * Identifier for the main task that runs periodically. | 696 | * Identifier for the main task that runs periodically. |
697 | */ | 697 | */ |
698 | GNUNET_SCHEDULER_TaskIdentifier do_round_task; | 698 | struct GNUNET_SCHEDULER_Task * do_round_task; |
699 | 699 | ||
700 | /** | 700 | /** |
701 | * Time inverval the do_round task runs in. | 701 | * Time inverval the do_round task runs in. |
@@ -1318,10 +1318,10 @@ shutdown_task (void *cls, | |||
1318 | { | 1318 | { |
1319 | LOG(GNUNET_ERROR_TYPE_DEBUG, "RPS is going down\n"); | 1319 | LOG(GNUNET_ERROR_TYPE_DEBUG, "RPS is going down\n"); |
1320 | 1320 | ||
1321 | if ( GNUNET_SCHEDULER_NO_TASK != do_round_task ) | 1321 | if ( NULL != do_round_task ) |
1322 | { | 1322 | { |
1323 | GNUNET_SCHEDULER_cancel (do_round_task); | 1323 | GNUNET_SCHEDULER_cancel (do_round_task); |
1324 | do_round_task = GNUNET_SCHEDULER_NO_TASK; | 1324 | do_round_task = NULL; |
1325 | } | 1325 | } |
1326 | 1326 | ||
1327 | GNUNET_NSE_disconnect(nse); | 1327 | GNUNET_NSE_disconnect(nse); |