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

Don't throw exception on stop if no DMRoomMap
pull/21833/head
David Baker 2016-12-09 11:04:33 +00:00 committed by GitHub
commit aed5a95c8f
1 changed files with 1 additions and 1 deletions

View File

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