This MR fixes the issue for a rare crash "nil is not a legal NSPersistentStoreCoordinator for searching for entity name" by making MQTTPersistent utilize a single instance instead of recreating when connection options changes.
It also provides flag to initialize the ManagedObjectContext immediately at the time of Courier Initialization to avoid any future race condition issue
This MR fixes the issue for a rare crash "nil is not a legal NSPersistentStoreCoordinator for searching for entity name" by making MQTTPersistent utilize a single instance instead of recreating when connection options changes.
It also provides flag to initialize the ManagedObjectContext immediately at the time of Courier Initialization to avoid any future race condition issue