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

Bryan Roe committed Jun 30, 2022 at 15:09 UTC 675996ccf2efbd504b1cb61a1e93e88622e20abe
1 file changed +5 -2
agents/recoverycore.js
+5 -2
@@ -721,8 +721,11 @@ function agentUpdate_Start(updateurl, updateoptions) {
721 }
722 catch (zz)
723 {
724 - sendConsoleText('Self Update encountered an error trying to restart service', sessionid);
725 - sendAgentMessage('Self Update encountered an error trying to restart service', 3);
724 + if (zz.toString() != 'waitExit() aborted because thread is exiting')
725 + {
726 + sendConsoleText('Self Update encountered an error trying to restart service', sessionid);
727 + sendAgentMessage('Self Update encountered an error trying to restart service', 3);
728 + }
729 }
730 break;
731 }