@@ -101,6 +101,7 @@ func (o *ModbusHandler) ReadAndHandle(conn net.Conn, remoteAddr string) {
logger.Get().Errorf("读取错误: %s\n", err)
}
defer conn.Close()
+ model.ConnectionMap1.Delete(conn.RemoteAddr().String())
return
queueData := model.QueueData{