Skip to content

Commit aa81470

Browse files
committed
use the correct map when removing subscriptions
1 parent 05bfc28 commit aa81470

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/controllers/Realtime.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ export class RealtimeController extends BaseController {
279279
* Use forEach instead of iterating over Map.keys() because the Webpack
280280
* transpilation is producing bad code leading to a loop not iterating.
281281
*/
282-
this._subscriptionsOff.forEach((rooms) => {
282+
this._subscriptions.forEach((rooms) => {
283283
for (const room of rooms) {
284284
room.removeListeners();
285285
}

0 commit comments

Comments
 (0)