mirror of
https://github.com/finos/SymphonyElectron.git
synced 2025-02-25 18:55:29 -06:00
RTC-13903 fix c9 multiple network messages 23.4 (#1789)
* RTC-13903 Fix C9 process restarting loop When C9 process starts, sometimes we get a 'no connection' message, then a 'connection available' which triggers the c9 process restart. * RTC-13903 Fix C9 multiple network messages
This commit is contained in:
committed by
GitHub
parent
d0757dbfe2
commit
2eb94d5fed
@@ -248,8 +248,8 @@ class C9ShellHandler {
|
||||
this._isDisconnected = false;
|
||||
const millisecondsElapsed =
|
||||
Date.now() - this._firstSuccessfulConnectionDate;
|
||||
// Sometime, we have 2 network connections in 4 seconds (while using a virtual machine)
|
||||
if (millisecondsElapsed > 10000) {
|
||||
// Using a virtual machine, we got 18 network connections in 40 seconds
|
||||
if (millisecondsElapsed > 90000) {
|
||||
this._onNetworkReconnection();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user