Browse Source

fix: REPORT-106900【远程设计性能】远程设计协议重构

修复一下合代码的问题
new-design
Harrison 11 months ago
parent
commit
002416f98f
  1. 3
      designer-base/src/main/java/com/fr/design/RPCConnectHandlerCenter.java

3
designer-base/src/main/java/com/fr/design/RPCConnectHandlerCenter.java

@ -19,7 +19,6 @@ import com.fr.workspace.Workspace;
import com.fr.workspace.WorkspaceEvent;
import com.fr.workspace.base.WorkspaceConstants;
import com.fr.workspace.connect.WorkspaceConnectionInfo;
import com.fr.workspace.engine.channel.WorkspaceChannelFactory;
import com.fr.workspace.engine.exception.WorkspaceConnectionException;
import javax.swing.JOptionPane;
@ -69,7 +68,7 @@ public class RPCConnectHandlerCenter {
*/
public static boolean checkRPCConnect(WorkspaceConnectionInfo info) {
try {
return WorkspaceChannelFactory.testConnection(info);
return WorkContext.getConnector().testConnection(info);
} catch (Exception e) {
FineLoggerFactory.getLogger().error(e, e.getMessage());
return false;

Loading…
Cancel
Save