Merge pull request #2920 from KevDi/closeServiceHandleAfterUnregister

Close Service Handle after DeleteService Function call
This commit is contained in:
Günter Obiltschnig
2020-02-12 20:36:23 +01:00
committed by GitHub

View File

@@ -125,6 +125,7 @@ void WinService::unregisterService()
open();
if (!DeleteService(_svcHandle))
throw SystemException("cannot unregister service", _name);
close();
}