Fix freeze

This commit is contained in:
kokarare1212
2021-11-21 21:57:57 +09:00
parent ba0428823c
commit bd71ecde46
2 changed files with 16 additions and 9 deletions

View File

@@ -77,13 +77,14 @@ class ChannelManager(Closeable, PacketsReceiver):
channel_manager: ChannelManager
chunk_id: int
q = queue.Queue()
__buffer = io.BytesIO()
__buffer: io.BytesIO
__chunk_index: int
__file: AudioFile
__header: bool = True
def __init__(self, channel_manager: ChannelManager, file: AudioFile,
chunk_index: int):
self.__buffer = io.BytesIO()
self.channel_manager = channel_manager
self.__file = file
self.__chunk_index = chunk_index