Skip to content

Commit

Permalink
Only send event if stream is not closed
Browse files Browse the repository at this point in the history
  • Loading branch information
njooma committed Oct 3, 2023
1 parent 123abaf commit a31a704
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/src/media/stream/client.dart
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ class StreamClient {
_internalListener.pause();
await _close(name);
_stream = null;
_streamController.add(null);
if (!_streamController.isClosed) _streamController.add(null);
}
}
}

0 comments on commit a31a704

Please sign in to comment.