mirror of
https://github.com/finos/SymphonyElectron.git
synced 2024-12-27 17:31:36 -06:00
RTC-13903 Fix C9 multiple network messages
This commit is contained in:
parent
fd7c8b1eff
commit
2dff6abeba
@ -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();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user