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