Don't throw exception on stop if no DMRoomMap
Prevents an exception when running the riot 'loading' tests in isolation
This commit is contained in:
parent
289f8ab439
commit
8d1095bc26
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue