From a341f0d6967ef492af60cce62d3cd1e1cf14b8c7 Mon Sep 17 00:00:00 2001 From: Diego Mello Date: Mon, 17 Feb 2020 13:07:09 -0300 Subject: [PATCH] [FIX] Catch room unsubscribe error (#1739) --- app/lib/methods/subscriptions/room.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/lib/methods/subscriptions/room.js b/app/lib/methods/subscriptions/room.js index 06713647..ccf944f8 100644 --- a/app/lib/methods/subscriptions/room.js +++ b/app/lib/methods/subscriptions/room.js @@ -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 }