Skip to content

Commit

Permalink
RTC-13903 Fix C9 multiple network messages
Browse files Browse the repository at this point in the history
  • Loading branch information
baphony authored and sbenmoussati committed Mar 16, 2023
1 parent fd7c8b1 commit 2dff6ab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/c9-shell-handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
}
Expand Down

0 comments on commit 2dff6ab

Please sign in to comment.