Fixed ready callback invocation

This commit is contained in:
Mark Qvist 2023-05-18 23:35:28 +02:00
parent 9c8e79546c
commit 800ed3af7a

View File

@ -129,7 +129,7 @@ class RawChannelReader(RawIOBase, AbstractContextManager):
self._eof = True
for listener in self._listeners:
try:
listener(len(self._buffer))
threading.Thread(target=listener, name="Message Callback", args=[len(self._buffer)], daemon=True).start()
except Exception as ex:
RNS.log("Error calling RawChannelReader(" + str(self._stream_id) + ") callback: " + str(ex))
return True