aboutsummaryrefslogtreecommitdiff
path: root/src/arm/gnunet-arm.c
diff options
context:
space:
mode:
authorNathan S. Evans <evans@in.tum.de>2010-05-07 10:47:51 +0000
committerNathan S. Evans <evans@in.tum.de>2010-05-07 10:47:51 +0000
commit1dea5b7075dc8cf916af6f2f8706224f852f1e75 (patch)
tree40cb58f18c979bfb190939e9574f987607cce71c /src/arm/gnunet-arm.c
parent0c0c533d2bf3dcf27366de599fa601f0513dbbc3 (diff)
downloadgnunet-1dea5b7075dc8cf916af6f2f8706224f852f1e75.tar.gz
gnunet-1dea5b7075dc8cf916af6f2f8706224f852f1e75.zip
comment for fall through
Diffstat (limited to 'src/arm/gnunet-arm.c')
-rw-r--r--src/arm/gnunet-arm.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/arm/gnunet-arm.c b/src/arm/gnunet-arm.c
index cda74bf63..7ad3e48e7 100644
--- a/src/arm/gnunet-arm.c
+++ b/src/arm/gnunet-arm.c
@@ -319,13 +319,7 @@ cps_loop (void *cls,
319 } 319 }
320 break; 320 break;
321 case 5: 321 case 5:
322 if (restart) /* FIXME: 322 if (restart)
323 * Restart should be a legal option but this is a hack.
324 * The proper thing to do would be have gnunet-service-arm
325 * signal us when actually shut down, and then initiate
326 * the startup. Instead we just sleep for two seconds
327 * and hope that's enough time for shutdown to have happened.
328 */
329 { 323 {
330 GNUNET_ARM_disconnect (h); 324 GNUNET_ARM_disconnect (h);
331 phase = 0; 325 phase = 0;
@@ -343,6 +337,7 @@ cps_loop (void *cls,
343 GNUNET_SCHEDULER_add_now(sched, &cps_loop, NULL); 337 GNUNET_SCHEDULER_add_now(sched, &cps_loop, NULL);
344 return; 338 return;
345 } 339 }
340 /* Fall through */
346 default: /* last phase */ 341 default: /* last phase */
347 GNUNET_ARM_disconnect (h); 342 GNUNET_ARM_disconnect (h);
348 if ((end == GNUNET_YES) && (delete == GNUNET_YES)) 343 if ((end == GNUNET_YES) && (delete == GNUNET_YES))