mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-04-19 15:36:02 +00:00
Fix OggStream "invalid header magic" at end of stream
This commit is contained in:
parent
a238c6178a
commit
51b3143319
@ -77,6 +77,8 @@ class OggStream:
|
||||
head = self.stream.read(4)
|
||||
if head == b'OggS':
|
||||
return OggPage(self.stream)
|
||||
elif not head:
|
||||
return None
|
||||
else:
|
||||
raise OggError('invalid header magic')
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user