From 7e91e9cc5b2a0c04918d76e9047cfd84a216dc33 Mon Sep 17 00:00:00 2001 From: "Destiny.Lin" Date: Fri, 25 Oct 2024 17:27:50 +0800 Subject: [PATCH] =?UTF-8?q?REPORT-138804=20=E3=80=90fr-fbp=E5=86=92?= =?UTF-8?q?=E7=83=9F=E3=80=91=E7=94=A8=E6=88=B7=E5=88=87=E6=8D=A2=E5=B7=A5?= =?UTF-8?q?=E4=BD=9C=E7=9B=AE=E5=BD=95=EF=BC=8C=E9=94=81=E6=9C=AA=E9=87=8A?= =?UTF-8?q?=E6=94=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/com/fr/design/backup/EnvBackupHelper.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/designer-base/src/main/java/com/fr/design/backup/EnvBackupHelper.java b/designer-base/src/main/java/com/fr/design/backup/EnvBackupHelper.java index 1dddbc2493..1c7ddb1ad9 100644 --- a/designer-base/src/main/java/com/fr/design/backup/EnvBackupHelper.java +++ b/designer-base/src/main/java/com/fr/design/backup/EnvBackupHelper.java @@ -5,6 +5,7 @@ import com.fanruan.config.realm.ConfigRepositoryFactory; import com.fanruan.config.realm.local.LocalConfigRepositoryBuilder; import com.fr.design.ConfigHelper; import com.fr.design.env.RemoteWorkspace; +import com.fr.design.lock.TemplateLockInfoReSave; import com.fr.design.mem.MemConfigBackupManager; import com.fr.design.mem.MemConfigRepositoryBuilder; import com.fr.log.FineLoggerFactory; @@ -123,6 +124,7 @@ public class EnvBackupHelper { // 如果原来是远程,要先发请求告诉原来的环境我这边要断开 if (origin instanceof RemoteWorkspace) { origin.close(); + TemplateLockInfoReSave.stopListener(); } } @@ -131,6 +133,7 @@ public class EnvBackupHelper { */ public void rollbackEnv() { if (origin instanceof RemoteWorkspace && ((RemoteWorkspace) origin).getClient() instanceof FineWorkspaceHttpClient) { + TemplateLockInfoReSave.startListener(); ((FineWorkspaceHttpClient) ((RemoteWorkspace) origin).getClient()).connect(); } }