]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/win32/libwin32/service.cpp
Fix #1633 Windows service is not removed if still running
[bacula/bacula] / 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) {