Skip to content

Commit

Permalink
close stream when disconnected
Browse files Browse the repository at this point in the history
  • Loading branch information
ianko committed Mar 13, 2020
1 parent 34ac7e9 commit 5133a37
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/casting/cast_sender.dart
Original file line number Diff line number Diff line change
Expand Up @@ -374,6 +374,8 @@ class CastSender extends Object {
}

void _dispose() {
castSessionController.close();
castMediaStatusController.close();
_socket = null;
_heartbeatChannel = null;
_connectionChannel = null;
Expand Down

0 comments on commit 5133a37

Please sign in to comment.