|
|
@@ -101,7 +101,7 @@ public class DeJuRFIDListenerService implements IService {
|
|
|
private void subscribeTcpHandler(GClient client, RemoteLabHardware hardware) {
|
|
|
client.onDisconnected = s -> {
|
|
|
log.info("连接" + s + "已断开");
|
|
|
- client.close();//释放当前连接资源
|
|
|
+ disconnect(hardware);
|
|
|
remoteLaboratoryService.update(HardwareOperate.CLOSE,hardware.getIpAddress());
|
|
|
log.info("连接" + s + "重连中。。。");
|
|
|
start(hardware);
|