From: Guus Sliepen Date: Wed, 1 Aug 2012 13:15:37 +0000 (+0200) Subject: tincctl restart should work even if no tincd is running. X-Git-Tag: import-tinc-1.1~321 X-Git-Url: https://git.meshlink.io/?a=commitdiff_plain;h=a9caa2a6ea3aa553c9d2140ad4f5b34b7ab7297b;p=meshlink tincctl restart should work even if no tincd is running. --- 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[]) {