diff --git a/src/main-ctl-handler.c b/src/main-ctl-handler.c index 9553d9f8..815880f2 100644 --- a/src/main-ctl-handler.c +++ b/src/main-ctl-handler.c @@ -832,7 +832,8 @@ static void method_disconnect_user_id(main_server_st * s, DBusConnection * conn, if (ctmp->pid == id) { remove_proc(s, ctmp, 1); status = 1; - break; + if (id != -1) + break; } }