fix(llc): fix concurrent modification error.
Signed-off-by: xsahil03x <[email protected]>
This commit is contained in:
@@ -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();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user