mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-15 07:24:52 +09:00
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:
1 parent
e23d07e965
commit
c889d8f325
1 file changed
+4
@@ -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();
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user