Now clearing the interrupt flag. Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
This commit is contained in:
parent
e0788ab056
commit
7b648f6d5c
|
@ -410,6 +410,11 @@ public class ReservedThreadExecutor extends AbstractLifeCycle implements TryExec
|
|||
{
|
||||
LOG.warn("Unable to run task", e);
|
||||
}
|
||||
finally
|
||||
{
|
||||
// Clear any interrupted status.
|
||||
Thread.interrupted();
|
||||
}
|
||||
}
|
||||
}
|
||||
finally
|
||||
|
@ -431,4 +436,4 @@ public class ReservedThreadExecutor extends AbstractLifeCycle implements TryExec
|
|||
_thread);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue