AgoraIO-Extensions / iris_method_channel_flutter

iris_method_channel is a method channel that communicate between C/C++(iris) and dart, which is used by Agora Flutter SDKs.
MIT License
2 stars 3 forks source link

fix: fix ConcurrentModificationError when and are called ynchronously but without keyword #28

Closed littleGnAl closed 1 year ago

littleGnAl commented 1 year ago

Do not modify the subScopedObjects/subScopedObjects(subScopedObjects.remove/scopedEventHandlers.remove) inside unregisterEventHandler and only remove the DisposableScopedObjects in unregisterEventHandlers, although the unregisterEventHandlers not be called, it's ok that reuse the same DisposableScopedObjects.