Don't throw exception on stop if no DMRoomMap
Prevents an exception when running the riot 'loading' tests in isolationpull/21833/head
parent
289f8ab439
commit
8d1095bc26
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue