Merge pull request #342 from hylkevds/master

Terminate processor on shutdown.
This commit is contained in:
Andrea Selva
2017-08-19 14:36:46 +02:00
committed by GitHub
2 changed files with 7 additions and 2 deletions
@@ -943,4 +943,9 @@ public class ProtocolProcessor {
public ISessionsStore getSessionsStore() { public ISessionsStore getSessionsStore() {
return m_sessionsStore; return m_sessionsStore;
} }
public void shutdown() {
if (m_interceptor != null)
m_interceptor.stop();
}
} }
@@ -254,8 +254,8 @@ public class ProtocolProcessorBootstrapper {
public void shutdown() { public void shutdown() {
if (storeShutdown != null) if (storeShutdown != null)
storeShutdown.run(); storeShutdown.run();
// if (m_interceptor != null) if (m_processor != null)
// m_interceptor.stop(); m_processor.shutdown();
} }
public ConnectionDescriptorStore getConnectionDescriptors() { public ConnectionDescriptorStore getConnectionDescriptors() {