fix(llc): fix concurrent modification error.

Signed-off-by: xsahil03x <[email protected]>
This commit is contained in:
Sahil Kumar
2023-05-02 19:55:59 +05:30
committed by xsahil03x
parent 42e1112c50
commit dc02c497e5
@@ -1713,7 +1713,7 @@ class ClientState {
_unreadChannelsController.close(); _unreadChannelsController.close();
_totalUnreadCountController.close(); _totalUnreadCountController.close();
final channels = this.channels.keys; final channels = [...this.channels.keys];
for (final channel in channels) { for (final channel in channels) {
this.channels.remove(channel)?.dispose(); this.channels.remove(channel)?.dispose();
} }