[FIX] Catch room unsubscribe error (#1739)

This commit is contained in:
Diego Mello 2020-02-17 13:07:09 -03:00 committed by GitHub
parent a580d3a867
commit a341f0d696
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -39,7 +39,7 @@ export default class RoomSubscription {
if (this.promises) {
try {
const subscriptions = await this.promises || [];
subscriptions.map(sub => sub.unsubscribe());
subscriptions.forEach(sub => sub.unsubscribe().catch(() => console.log('unsubscribeRoom')));
} catch (e) {
// do nothing
}