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 {
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
}
......
Markdown is supported
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