From 675996ccf2efbd504b1cb61a1e93e88622e20abe Mon Sep 17 00:00:00 2001 From: Bryan Roe Date: Thu, 30 Jun 2022 15:09:06 -0700 Subject: [PATCH] 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 --- agents/recoverycore.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/agents/recoverycore.js b/agents/recoverycore.js index 0f4341fb..169b170c 100644 --- a/agents/recoverycore.js +++ b/agents/recoverycore.js @@ -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; }