| | |
| | | isTest = false; |
| | | // 发送 |
| | | // EasySocket.getInstance().upMessage(dataMessage); |
| | | if (EasySocket.getInstance().getDefOptions().getSocketAddress() != null) { |
| | | if (EasySocket.getInstance().getDefconnection() != null) { |
| | | EasySocket.getInstance().disconnect(false); |
| | | EasySocket.getInstance().connect(); |
| | | this.dataMessage = dataMessage; |
| | | } else { |
| | | LogUtil.w("Socket地址为空"); |
| | | MyApplication.myApplication.initEasySocket(false, null); |
| | | } |
| | | } |
| | | |
| | |
| | | MyApplication.myApplication.initMachineRequestBean(ipBean.getIp(), ipBean.getPort(), adminData.getAddressCode()); |
| | | } |
| | | } |
| | | }, 2000); |
| | | }, 500); |
| | | |
| | | } |
| | | if (dataMessage != null) { |