From 3891b1c9e5d2655702f726bd1946b2f462822daf 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