diff --git a/src/libs/actions/User.ts b/src/libs/actions/User.ts index 2085cc181aaa..c8c9ae12773d 100644 --- a/src/libs/actions/User.ts +++ b/src/libs/actions/User.ts @@ -30,7 +30,6 @@ import Log from '@libs/Log'; import Navigation from '@libs/Navigation/Navigation'; import {isOffline} from '@libs/Network/NetworkStore'; import * as SequentialQueue from '@libs/Network/SequentialQueue'; -import NetworkConnection from '@libs/NetworkConnection'; import * as NumberUtils from '@libs/NumberUtils'; import * as PersonalDetailsUtils from '@libs/PersonalDetailsUtils'; import * as Pusher from '@libs/Pusher/pusher'; @@ -972,7 +971,6 @@ function checkforMissingPongEvents() { // If the oldest timestamp is older than 2 * PING_INTERVAL_LENGTH_IN_SECONDS, then set the network status to offline if (ageOfEventInMS > NO_EVENT_RECEIVED_TO_BE_OFFLINE_THRESHOLD_IN_SECONDS * 1000) { Log.info(`[Pusher PINGPONG] The server has not replied to the PING event ${eventID} in ${ageOfEventInMS} ms so going offline`); - // NetworkConnection.setOfflineStatus(true, 'The client never got a Pusher PONG event after sending a Pusher PING event'); // When going offline, reset the pingpong state so that when the network reconnects, the client will start fresh lastTimestamp = Date.now();