Filtered out exception that can get thrown when JS attempts to restart self, which is normal, because the exception says the process is shutting down. Only happens on macOS

This commit is contained in:
Bryan Roe 2022-06-30 15:09:06 -07:00
parent 81e18fac59
commit 675996ccf2

View File

@ -720,10 +720,13 @@ function agentUpdate_Start(updateurl, updateoptions) {
s.restart();
}
catch (zz)
{
if (zz.toString() != 'waitExit() aborted because thread is exiting')
{
sendConsoleText('Self Update encountered an error trying to restart service', sessionid);
sendAgentMessage('Self Update encountered an error trying to restart service', 3);
}
}
break;
}
}