lib: Use FIFO service handle processing order

Done to avoid potential internal deps between service control manager and owned by it service to fire.
This commit is contained in:
Dmitry Tsarevich 2020-05-06 23:28:31 +03:00
parent edac89740f
commit 4baa04e340
No known key found for this signature in database
GPG Key ID: E3C61298FF5B1274
1 changed files with 21 additions and 21 deletions

View File

@ -48,12 +48,12 @@ bool is_daemon_installed()
}
}
if (schSCManager)
CloseServiceHandle(schSCManager);
if (schService)
CloseServiceHandle(schService);
if (schSCManager)
CloseServiceHandle(schSCManager);
return bRetVal;
}
@ -90,12 +90,12 @@ bool is_daemon_starting()
}
}
if (schSCManager)
CloseServiceHandle(schSCManager);
if (schService)
CloseServiceHandle(schService);
if (schSCManager)
CloseServiceHandle(schSCManager);
return bRetVal;
}
@ -132,12 +132,12 @@ bool is_daemon_running()
}
}
if (schSCManager)
CloseServiceHandle(schSCManager);
if (schService)
CloseServiceHandle(schService);
if (schSCManager)
CloseServiceHandle(schSCManager);
return bRetVal;
}
@ -174,12 +174,12 @@ bool is_daemon_stopping()
}
}
if (schSCManager)
CloseServiceHandle(schSCManager);
if (schService)
CloseServiceHandle(schService);
if (schSCManager)
CloseServiceHandle(schSCManager);
return bRetVal;
}
@ -216,12 +216,12 @@ bool is_daemon_stopped()
}
}
if (schSCManager)
CloseServiceHandle(schSCManager);
if (schService)
CloseServiceHandle(schService);
if (schSCManager)
CloseServiceHandle(schSCManager);
return bRetVal;
}
@ -313,12 +313,12 @@ bool start_daemon()
}
}
if (schSCManager)
CloseServiceHandle(schSCManager);
if (schService)
CloseServiceHandle(schService);
if (schSCManager)
CloseServiceHandle(schSCManager);
return bRetVal;
}
@ -411,12 +411,12 @@ bool stop_daemon()
}
}
if (schSCManager)
CloseServiceHandle(schSCManager);
if (schService)
CloseServiceHandle(schService);
if (schSCManager)
CloseServiceHandle(schSCManager);
return bRetVal;
}