Maksimka101 / isolate-bloc

A Flutter package that helps implement the BLoC pattern when blocs run in their own Isolate.
MIT License
21 stars 9 forks source link

Error when closing two blocs of the same type. #2

Closed Maksimka101 closed 3 years ago

Maksimka101 commented 4 years ago

When you are closing two blocs of the same type first bloc removes from IsolatedBlocManager._createdBlocsByType and second one also trying to removes but it can't and throw exception "close() was called on null".

aytunch commented 3 years ago

How can we solve this problem?

Maksimka101 commented 3 years ago

Already solved. I just forget to close this issue)