ESBCOMP-118 Shutting-down thread pool when stopping inbound / outbound receiver

master
David BRASSELY 2014-10-30 12:25:49 +01:00
parent 602aa16f34
commit 83ad26a891
2 changed files with 2 additions and 0 deletions

View File

@ -289,6 +289,7 @@ class InboundReceiver {
*/
protected void stopReceiving() {
mLogger.log(Level.INFO, mMessages.getString("DBBC_C00605.IR_Stop"));
mInboundPooledExecutor.shutdownNow();
}
/**

View File

@ -170,6 +170,7 @@ class OutboundReceiver implements Runnable {
*/
public void stopReceiving() {
OutboundReceiver.mLogger.log(Level.INFO, OutboundReceiver.mMessages.getString("DBBC_R00669.OR_Stop"));
mOutboundPooledExecutor.shutdownNow();
mMonitor.set(Boolean.TRUE);
}
}