Merge pull request #107 from kazvictor/Server-Shutdown-Test-and-Fix

Stopping the persistence commit scheduler in MapDBPersistentStore when it is closed
This commit is contained in:
Andrea Selva
2015-09-29 21:08:58 +02:00
2 changed files with 61 additions and 0 deletions
@@ -312,6 +312,8 @@ public class MapDBPersistentStore implements IMessagesStore, ISessionsStore {
LOG.debug("persisted subscriptions {}", m_persistentSubscriptions);
this.m_db.close();
LOG.debug("closed disk storage");
this.m_scheduler.shutdown();
LOG.debug("Persistence commit scheduler is shutdown");
}
/*-------- QoS 2 storage management --------------*/