Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Clean up after ourselves when done streaming
In addition to closing the read stream, clear out our "cache" of packets and don't flag ourselves as waiting any more so a spurious message won't wake things up. Also when finishing the stream, only set ourselves to AS_DONE when all packets have been fully consumed by the audio stream, not when the network stream finishes.
- Loading branch information
1 parent
85374c1
commit a1e8198
Showing
1 changed file
with
35 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters