Skip to content

Commit 81b05c3

Browse files
yuwenmemonOSBotify
authored andcommitted
Merge pull request #56183 from Expensify/tgolen-disable-pingpongoffline
[No QA] [CP Staging] Disable the network going offline for now when a PONG is not received (cherry picked from commit ec9a9ff) (CP triggered by tgolen)
1 parent 58780bd commit 81b05c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libs/actions/User.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -972,7 +972,7 @@ function checkforMissingPongEvents() {
972972
// If the oldest timestamp is older than 2 * PING_INTERVAL_LENGTH_IN_SECONDS, then set the network status to offline
973973
if (ageOfEventInMS > NO_EVENT_RECEIVED_TO_BE_OFFLINE_THRESHOLD_IN_SECONDS * 1000) {
974974
Log.info(`[Pusher PINGPONG] The server has not replied to the PING event ${eventID} in ${ageOfEventInMS} ms so going offline`);
975-
NetworkConnection.setOfflineStatus(true, 'The client never got a Pusher PONG event after sending a Pusher PING event');
975+
// NetworkConnection.setOfflineStatus(true, 'The client never got a Pusher PONG event after sending a Pusher PING event');
976976

977977
// When going offline, reset the pingpong state so that when the network reconnects, the client will start fresh
978978
lastTimestamp = Date.now();

0 commit comments

Comments
 (0)