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
1 changed files with 5 additions and 2 deletions

View File

@ -721,8 +721,11 @@ function agentUpdate_Start(updateurl, updateoptions) {
}
catch (zz)
{
sendConsoleText('Self Update encountered an error trying to restart service', sessionid);
sendAgentMessage('Self Update encountered an error trying to restart service', 3);
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;
}