]> git.meshlink.io Git - meshlink/commitdiff
tincctl restart should work even if no tincd is running.
authorGuus Sliepen <guus@tinc-vpn.org>
Wed, 1 Aug 2012 13:15:37 +0000 (15:15 +0200)
committerGuus Sliepen <guus@tinc-vpn.org>
Wed, 1 Aug 2012 13:15:37 +0000 (15:15 +0200)
src/tincctl.c

index 1cdcf586a2556511e8e1b27558b29f4080b1b02e..188db9222a18e14c5ef73ea1a8bc2cb6a18241b8 100644 (file)
@@ -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[]) {