tools/lxc_stop: use correct check

parent d76ae655
......@@ -205,8 +205,7 @@ int main(int argc, char *argv[])
/* reboot */
if (my_args.reboot) {
ret = c->reboot2(c, my_args.timeout);
if (ret < 0)
if (!c->reboot2(c, my_args.timeout))
ret = EXIT_FAILURE;
else
ret = EXIT_SUCCESS;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment