From a9caa2a6ea3aa553c9d2140ad4f5b34b7ab7297b Mon Sep 17 00:00:00 2001 From: Guus Sliepen Date: Wed, 1 Aug 2012 15:15:37 +0200 Subject: [PATCH] tincctl restart should work even if no tincd is running. --- src/tincctl.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/tincctl.c b/src/tincctl.c index 1cdcf586..188db922 100644 --- a/src/tincctl.c +++ b/src/tincctl.c @@ -738,7 +738,8 @@ static int cmd_stop(int argc, char *argv[]) { } static int cmd_restart(int argc, char *argv[]) { - return cmd_stop(argc, argv) ?: cmd_start(argc, argv); + cmd_stop(argc, argv); + return cmd_start(argc, argv); } static int cmd_reload(int argc, char *argv[]) { -- 2.39.5