From: Nathan S. Evans Date: Fri, 7 May 2010 10:47:51 +0000 (+0000) Subject: comment for fall through X-Git-Tag: initial-import-from-subversion-38251~21823 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=1dea5b7075dc8cf916af6f2f8706224f852f1e75;p=oweals%2Fgnunet.git comment for fall through --- 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, } break; case 5: - if (restart) /* FIXME: - * Restart should be a legal option but this is a hack. - * The proper thing to do would be have gnunet-service-arm - * signal us when actually shut down, and then initiate - * the startup. Instead we just sleep for two seconds - * and hope that's enough time for shutdown to have happened. - */ + if (restart) { GNUNET_ARM_disconnect (h); phase = 0; @@ -343,6 +337,7 @@ cps_loop (void *cls, GNUNET_SCHEDULER_add_now(sched, &cps_loop, NULL); return; } + /* Fall through */ default: /* last phase */ GNUNET_ARM_disconnect (h); if ((end == GNUNET_YES) && (delete == GNUNET_YES))