Comment onLoggedOut & consistent comment style

pull/21833/head
David Baker 2016-08-04 10:49:34 +01:00
parent afa46a855b
commit e144da75e3
1 changed files with 7 additions and 1 deletions

View File

@ -79,6 +79,10 @@ function startMatrixClient() {
MatrixClientPeg.start();
}
/*
* Stops a running client and all related services, used after
* a session has been logged out / ended.
*/
function onLoggedOut() {
if (window.localStorage) {
const hsUrl = window.localStorage.getItem("mx_hs_url");
@ -95,7 +99,9 @@ function onLoggedOut() {
dis.dispatch({action: 'on_logged_out'});
}
// stop all the background processes related to the current client
/**
* Stop all the background processes related to the current client
*/
function _stopMatrixClient() {
Notifier.stop();
UserActivity.stop();