mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-14 17:06:16 +00:00
Revert "Service monitor fixes fix"
This reverts commit 0752619302a305430c5e5774266c45202792bb5b.
This commit is contained in:
parent
c9a5b81e5d
commit
3b1839c5fa
@ -176,7 +176,7 @@ public class ServicesMonitor {
|
|||||||
* If the status has changed, do a log message and create a user
|
* If the status has changed, do a log message and create a user
|
||||||
* notification message.
|
* notification message.
|
||||||
*/
|
*/
|
||||||
if ((!statusByService.containsKey(serviceName)) || (statusByService.containsKey(serviceName) && !status.equals(statusByService.get(serviceName)))) {
|
if (statusByService.containsKey(serviceName) && !status.equals(statusByService.get(serviceName))) {
|
||||||
if (status.equals(ServiceStatus.UP.toString())) {
|
if (status.equals(ServiceStatus.UP.toString())) {
|
||||||
logger.log(Level.INFO, "{0} status is up", serviceDisplayName); //NON-NLS
|
logger.log(Level.INFO, "{0} status is up", serviceDisplayName); //NON-NLS
|
||||||
MessageNotifyUtil.Notify.info(NbBundle.getMessage(ServicesMonitor.class, "ServicesMonitor.restoredService.notify.title"),
|
MessageNotifyUtil.Notify.info(NbBundle.getMessage(ServicesMonitor.class, "ServicesMonitor.restoredService.notify.title"),
|
||||||
@ -382,19 +382,17 @@ public class ServicesMonitor {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Case.isCaseOpen()) {
|
|
||||||
try {
|
try {
|
||||||
Case currentCase = Case.getCurrentCase();
|
Case currentCase = Case.getCurrentCase();
|
||||||
if (Case.CaseType.SINGLE_USER_CASE == currentCase.getCaseType()) {
|
if (Case.CaseType.SINGLE_USER_CASE == currentCase.getCaseType()) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
} catch (IllegalStateException ignored) {
|
} catch (IllegalArgumentException ignored) {
|
||||||
/*
|
/*
|
||||||
* No current case, proceed to check services because multi-user
|
* No current case, proceed to check services because multi-user
|
||||||
* cases are enabled.
|
* cases are enabled.
|
||||||
*/
|
*/
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
for (String service : multiUserServicesList) {
|
for (String service : multiUserServicesList) {
|
||||||
checkMultiUserServiceStatus(service);
|
checkMultiUserServiceStatus(service);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user