From c889d8f325aa57a9ae9a7736e2649983f1a3c728 Mon Sep 17 00:00:00 2001 From: Hornwitser Date: Wed, 3 Nov 2021 16:27:21 +0100 Subject: [PATCH] Ignore SessionLost from updateInstances (#422) Don't shutdown the slave if the connection session is lost during updateInstances. Resolves #418. --- packages/slave/slave.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/slave/slave.js b/packages/slave/slave.js index c7b4b456..ddf0cd32 100755 --- a/packages/slave/slave.js +++ b/packages/slave/slave.js @@ -1097,6 +1097,10 @@ class Slave extends libLink.Link { } this.updateInstances().catch((err) => { + if (err instanceof libErrors.SessionLost) { + return undefined; + } + logger.fatal(`Unexpected error updating instances:\n${err.stack}`); return this.shutdown(); });