Ignore SessionLost from updateInstances (#422)

Don't shutdown the slave if the connection session is lost during
updateInstances.  Resolves #418.
This commit is contained in:
Hornwitser authored and GitHub committed 2021-11-03 16:27:21 +01:00
1 parent e23d07e965
commit c889d8f325
1 file changed
+4
+4
View File
@@ -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();
});