From 81a1c0f6311afc3e1670a47aff5a7636d7e63810 Mon Sep 17 00:00:00 2001 From: Bastian Friedrich Date: Tue, 31 Aug 2010 14:43:44 +0200 Subject: [PATCH] Fix #1633 Windows service is not removed if still running Signed-off-by: Eric Bollengier --- bacula/src/win32/libwin32/service.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- 2.39.5