Fixes an issue where the write stream may not write the last remaining samples in the buffer when closed.
Also fixes an issue where WriteStream::finish_complete() didn't actually work because a closed write stream never polls for messages from the server. While the easiest solution would be to just add self.poll() inside WriteStream::finish_complete(), this would require a change for self to be mutable which would be a breaking change. So as a temporary solution until the next major version I made the WriteStream::poll() method public.
Fixes an issue where the write stream may not write the last remaining samples in the buffer when closed.
Also fixes an issue where
WriteStream::finish_complete()
didn't actually work because a closed write stream never polls for messages from the server. While the easiest solution would be to just addself.poll()
insideWriteStream::finish_complete()
, this would require a change forself
to be mutable which would be a breaking change. So as a temporary solution until the next major version I made theWriteStream::poll()
method public.