From df455d441d46f74308b53197bc40749cad8672df Mon Sep 17 00:00:00 2001 From: ju Date: Wed, 6 Jun 2018 18:12:46 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=A0JIRA=E4=BB=BB=E5=8A=A1=20=E6=89=93?= =?UTF-8?q?=E5=8C=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/com/fr/start/server/FineEmbedServer.java | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/designer-base/src/com/fr/start/server/FineEmbedServer.java b/designer-base/src/com/fr/start/server/FineEmbedServer.java index effef1bb7e..96e07f166b 100644 --- a/designer-base/src/com/fr/start/server/FineEmbedServer.java +++ b/designer-base/src/com/fr/start/server/FineEmbedServer.java @@ -5,10 +5,6 @@ import com.fr.design.DesignerEnvManager; import com.fr.event.EventDispatcher; import com.fr.log.FineLoggerFactory; import com.fr.module.ModuleRole; -import com.fr.stable.lifecycle.AbstractLifecycle; -import com.fr.stable.lifecycle.Lifecycle; -import com.fr.stable.lifecycle.LifecycleEvent; -import com.fr.stable.lifecycle.LifecycleListener; import com.fr.startup.FineWebApplicationInitializer; import com.fr.third.springframework.web.SpringServletContainerInitializer; import com.fr.third.springframework.web.context.support.AnnotationConfigWebApplicationContext; @@ -40,7 +36,7 @@ public class FineEmbedServer { private FineEmbedServer() {} - public void start() { + public synchronized void start() { if (isRunning) { return; @@ -57,7 +53,7 @@ public class FineEmbedServer { EventDispatcher.fire(EmbedServerEvent.AfterStart); } - public void stop() { + public synchronized void stop() { if (!isRunning) { return;