Browse Source

fixed 1390

mcy 6 years ago
parent
commit
63ad80c8c4

+ 3 - 2
deployer/src/main/java/com/alibaba/otter/canal/deployer/CanalLauncher.java

@@ -77,8 +77,9 @@ public class CanalLauncher {
                 });
             }
 
-            while (running)
-                ;
+            while (running) {
+                Thread.sleep(1000);
+            }
 
             if (managerDbConfigMonitor != null) {
                 managerDbConfigMonitor.destroy();