[FIX] Catch room unsubscribe error (#1739)
This commit is contained in:
parent
a580d3a867
commit
a341f0d696
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue