wyyay преди 10 месеца
родител
ревизия
2555169bb1
променени са 1 файла, в които са добавени 0 реда и са изтрити 14 реда
  1. 0 14
      hazard-admin/src/main/java/com/ozs/web/controller/shotschedule/TaskService.java

+ 0 - 14
hazard-admin/src/main/java/com/ozs/web/controller/shotschedule/TaskService.java

@@ -83,13 +83,6 @@ public class TaskService {
                     }
                 }
             });
-            try {
-                if(executorService.awaitTermination(60,TimeUnit.SECONDS)){
-                    executorService.shutdown();
-                }
-            } catch (InterruptedException e) {
-                e.printStackTrace();
-            }
         }
     }
 
@@ -128,13 +121,6 @@ public class TaskService {
                     }
                 }
             });
-            try {
-                if(alarmExecutorService.awaitTermination(30,TimeUnit.SECONDS)){
-                    executorService.shutdown();
-                }
-            } catch (InterruptedException e) {
-                e.printStackTrace();
-            }
         }
     }