]> git.sur5r.net Git - bacula/bacula/commitdiff
Fix #1633 Windows service is not removed if still running
authorBastian Friedrich <bastian.friedrich@collax.com>
Tue, 31 Aug 2010 12:43:44 +0000 (14:43 +0200)
committerEric Bollengier <eric@eb.homelinux.org>
Tue, 31 Aug 2010 12:46:20 +0000 (14:46 +0200)
Signed-off-by: Eric Bollengier <eric@eb.homelinux.org>
bacula/src/win32/libwin32/service.cpp

index 735a8670e52760dcbb7fe5503d811972d59aa60e..4537f791fec3f460365b1e074200cb5308051a21 100644 (file)
@@ -357,7 +357,7 @@ int removeService()
                   if (status.dwCurrentState == SERVICE_STOP_PENDING) {
                      sleep(1);
                   } else {
-                     return 0;
+                     break;
                   }
                }
                if (status.dwCurrentState != SERVICE_STOPPED) {