Author: echatellier Date: 2014-08-01 10:01:57 +0200 (Fri, 01 Aug 2014) New Revision: 457 Url: http://forge.codelutin.com/projects/faxtomail/repository/revisions/457 Log: Fix scheduler stop Modified: trunk/faxtomail-ui-web/src/main/java/com/franciaflex/faxtomail/web/FaxToMailApplicationListener.java Modified: trunk/faxtomail-ui-web/src/main/java/com/franciaflex/faxtomail/web/FaxToMailApplicationListener.java =================================================================== --- trunk/faxtomail-ui-web/src/main/java/com/franciaflex/faxtomail/web/FaxToMailApplicationListener.java 2014-07-31 16:44:24 UTC (rev 456) +++ trunk/faxtomail-ui-web/src/main/java/com/franciaflex/faxtomail/web/FaxToMailApplicationListener.java 2014-08-01 08:01:57 UTC (rev 457) @@ -94,7 +94,7 @@ try { - Scheduler scheduler = new StdSchedulerFactory().getScheduler(); + scheduler = new StdSchedulerFactory().getScheduler(); // schedule mail job (toutes les 5 minutes) Trigger trigger = TriggerBuilder @@ -143,6 +143,7 @@ } try { + // wait for thread to complete scheduler.shutdown(); } catch (SchedulerException e) { if (log.isWarnEnabled()) {