Fix errors when an anonymous user leaves the shared worker
This commit is contained in:
@@ -2089,9 +2089,12 @@ define([
|
||||
store.onlyoffice.removeClient(clientId);
|
||||
} catch (e) { console.error(e); }
|
||||
try {
|
||||
if (store.mailbox) {
|
||||
store.mailbox.removeClient(clientId);
|
||||
}
|
||||
} catch (e) { console.error(e); }
|
||||
Object.keys(store.modules).forEach(function (key) {
|
||||
if (!store.modules[key]) { return; }
|
||||
if (!store.modules[key].removeClient) { return; }
|
||||
try {
|
||||
store.modules[key].removeClient(clientId);
|
||||
|
||||
Reference in New Issue
Block a user