fix opc
This commit is contained in:
@@ -89,20 +89,24 @@ public class OpcServerServiceImpl implements OpcServerService, ApplicationAutoIn
|
|||||||
// }
|
// }
|
||||||
// }
|
// }
|
||||||
|
|
||||||
Server server = (Server)this.servers.get(code);
|
// Server server = (Server)this.servers.get(code);
|
||||||
boolean needcreate = false;
|
// boolean needcreate = false;
|
||||||
String groupName = code;
|
// String groupName = code;
|
||||||
if (server == null) {
|
// if (server == null) {
|
||||||
needcreate = true;
|
// needcreate = true;
|
||||||
} else {
|
// } else {
|
||||||
try {
|
// try {
|
||||||
group = server.findGroup(groupName);
|
// group = server.findGroup(groupName);
|
||||||
} catch (UnknownHostException | JIException | UnknownGroupException | NotConnectedException | IllegalArgumentException var13) {
|
// } catch (UnknownHostException | JIException | UnknownGroupException | NotConnectedException | IllegalArgumentException var13) {
|
||||||
log.error(code, var13);
|
// log.error(code, var13);
|
||||||
needcreate = true;
|
// needcreate = true;
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
|
|
||||||
|
boolean needcreate = false;
|
||||||
|
needcreate = true;
|
||||||
|
String groupName = code;
|
||||||
|
Server server = null;
|
||||||
if (needcreate) {
|
if (needcreate) {
|
||||||
OpcServerManageDto dto = (OpcServerManageDto)this.opcServerManageDtos.get(code);
|
OpcServerManageDto dto = (OpcServerManageDto)this.opcServerManageDtos.get(code);
|
||||||
if (dto == null) {
|
if (dto == null) {
|
||||||
|
|||||||
Reference in New Issue
Block a user