From 5cffee7ce6c9d25272d6b5bfb9c8b5c23072548c Mon Sep 17 00:00:00 2001 From: David Baker Date: Tue, 4 Aug 2015 16:45:39 +0100 Subject: [PATCH] stop matrix client on logout please --- src/controllers/pages/MatrixChat.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/controllers/pages/MatrixChat.js b/src/controllers/pages/MatrixChat.js index c4b5a27b..ded72a09 100644 --- a/src/controllers/pages/MatrixChat.js +++ b/src/controllers/pages/MatrixChat.js @@ -97,6 +97,7 @@ module.exports = { } Notifier.stop(); Presence.stop(); + MatrixClientPeg.get().stopClient(); MatrixClientPeg.get().removeAllListeners(); MatrixClientPeg.unset(); this.notifyNewScreen('');