handle review comments
Signed-off-by: Ludovic Orban <lorban@bitronix.be>
This commit is contained in:
parent
0928204db7
commit
b5124fd7c9
|
@ -124,11 +124,13 @@ public class ScheduledExecutorScheduler extends AbstractLifeCycle implements Sch
|
|||
@Override
|
||||
protected void doStop() throws Exception
|
||||
{
|
||||
scheduler.shutdownNow();
|
||||
super.doStop();
|
||||
// If name is set to null, this means we got the scheduler from the constructor.
|
||||
if (name != null)
|
||||
{
|
||||
scheduler.shutdownNow();
|
||||
scheduler = null;
|
||||
}
|
||||
super.doStop();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in New Issue