fix check in cmd_pid() for failure to connect to tincd

This commit is contained in:
Sean McVeigh 2016-05-21 17:38:14 -04:00
parent 4314df644e
commit e47fe48aed

View file

@ -1391,7 +1391,7 @@ static int cmd_pid(int argc, char *argv[]) {
return 1;
}
if(!connect_tincd(true) && !pid)
if(!connect_tincd(true) || !pid)
return 1;
printf("%d\n", pid);