[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) {
|
if (this.promises) {
|
||||||
try {
|
try {
|
||||||
const subscriptions = await this.promises || [];
|
const subscriptions = await this.promises || [];
|
||||||
subscriptions.map(sub => sub.unsubscribe());
|
subscriptions.forEach(sub => sub.unsubscribe().catch(() => console.log('unsubscribeRoom')));
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
// do nothing
|
// do nothing
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue