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-Tag: Release-5.2.1~1138 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=81a1c0f6311afc3e1670a47aff5a7636d7e63810;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) {