Unverified Commit b35d2e45 authored by krida2000's avatar krida2000 Committed by GitHub
Browse files

Prevent adding events to closed stream controller (#1223)

* Prevent adding events to closed stream controller
parent 1cfa10c9
......@@ -17,7 +17,9 @@ class ChangeNotifier {
/// Not part of public API
void notify(Frame frame) {
_streamController.add(BoxEvent(frame.key, frame.value, frame.deleted));
if (!_streamController.isClosed) {
_streamController.add(BoxEvent(frame.key, frame.value, frame.deleted));
}
}
/// Not part of public API
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment