// Token: 0x06000170 RID: 368 RVA: 0x0000D284 File Offset: 0x0000B484 public void run() { try { while (Session_ME2.connected) { Message message = this.readMessage(); if (message == null) { break; } try { if ((int)message.command == -27) { this.getKey(message); } else { Session_ME2.onRecieveMsg(message); } } catch (Exception) { Cout.println("LOI NHAN MESS THU 1"); } try { Thread.Sleep(5); } catch (Exception) { Cout.println("LOI NHAN MESS THU 2"); } } } catch (Exception ex) { Debug.Log("error read message!"); Debug.Log(ex.Message.ToString()); } if (Session_ME2.connected) { if (Session_ME2.messageHandler != null) { if (Session_ME2.currentTimeMillis() - Session_ME2.timeConnected > 500) { Session_ME2.messageHandler.onDisconnected(Session_ME2.isMainSession); } else { Session_ME2.messageHandler.onConnectionFail(Session_ME2.isMainSession); } } if (Session_ME2.sc != null) { Session_ME2.cleanNetwork(); } } }
// Token: 0x06000167 RID: 359 RVA: 0x000043D3 File Offset: 0x000025D3 public void close() { Session_ME2.cleanNetwork(); }