public void onSendPackFailed(bool needReconnect, SessionPack sessionPack) { Log.e("Network", string.Concat(new object[] { "sender:onSendPackFailed, seq =", sessionPack.mSeqID, ", cmd =", sessionPack.mCmdID })); SessionPackMgr.cleanAllTimeoutPoint(sessionPack.mConnectMode); SessionPackMgr.markAllToNotSended(sessionPack.mConnectMode); if (SessionPackMgr.getAuthStatus() == 1) { SessionPackMgr.setAuthStatus(0); } Connector.onSendFailed(needReconnect, sessionPack.mConnectMode); }
public static void onApplicationActivated() { if (mRunStatus == 2) { SessionPackMgr.cleanAllTimeoutPoint(3); SessionPackMgr.markAllToNotSended(3); if (SessionPackMgr.getAuthStatus() == 1) { SessionPackMgr.setAuthStatus(0); } Connector.onPrepareSend(true); mRunStatus = 1; } }