From: Bastian Friedrich Date: Tue, 31 Aug 2010 12:43:44 +0000 (+0200) Subject: Fix #1633 Windows service is not removed if still running X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=3891b1c9e5d2655702f726bd1946b2f462822daf;p=bacula%2Fbacula Fix #1633 Windows service is not removed if still running Signed-off-by: Eric Bollengier --- diff --git a/bacula/src/win32/libwin32/service.cpp b/bacula/src/win32/libwin32/service.cpp index 735a8670e5..4537f791fe 100644 --- a/bacula/src/win32/libwin32/service.cpp +++ b/bacula/src/win32/libwin32/service.cpp @@ -357,7 +357,7 @@ int removeService() if (status.dwCurrentState == SERVICE_STOP_PENDING) { sleep(1); } else { - return 0; + break; } } if (status.dwCurrentState != SERVICE_STOPPED) {