Merge pull request #589 from matrix-org/dbkr/dont_crash_if_no_dmroommap

Don't throw exception on stop if no DMRoomMap
This commit is contained in:
David Baker 2016-12-09 11:04:33 +00:00 committed by GitHub
commit aed5a95c8f

View file

@ -356,7 +356,7 @@ export function stopMatrixClient() {
Notifier.stop(); Notifier.stop();
UserActivity.stop(); UserActivity.stop();
Presence.stop(); Presence.stop();
DMRoomMap.shared().stop(); if (DMRoomMap.shared()) DMRoomMap.shared().stop();
var cli = MatrixClientPeg.get(); var cli = MatrixClientPeg.get();
if (cli) { if (cli) {
cli.stopClient(); cli.stopClient();