Unverified Commit a341f0d6 authored by Diego Mello's avatar Diego Mello Committed by GitHub
Browse files

[FIX] Catch room unsubscribe error (#1739)

parent a580d3a8
...@@ -39,7 +39,7 @@ export default class RoomSubscription { ...@@ -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
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment