RTC-13903 Fix C9 multiple network messages

This commit is contained in:
Baptiste Clarey Sjostrand 2023-03-16 10:32:33 +01:00 committed by Salah Benmoussati
parent fd7c8b1eff
commit 2dff6abeba

View File

@ -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();
}
}