mirror of
https://github.com/markqvist/Reticulum.git
synced 2024-11-22 21:50:18 +00:00
Fixed ready callback invocation
This commit is contained in:
parent
9c8e79546c
commit
800ed3af7a
@ -129,7 +129,7 @@ class RawChannelReader(RawIOBase, AbstractContextManager):
|
|||||||
self._eof = True
|
self._eof = True
|
||||||
for listener in self._listeners:
|
for listener in self._listeners:
|
||||||
try:
|
try:
|
||||||
listener(len(self._buffer))
|
threading.Thread(target=listener, name="Message Callback", args=[len(self._buffer)], daemon=True).start()
|
||||||
except Exception as ex:
|
except Exception as ex:
|
||||||
RNS.log("Error calling RawChannelReader(" + str(self._stream_id) + ") callback: " + str(ex))
|
RNS.log("Error calling RawChannelReader(" + str(self._stream_id) + ") callback: " + str(ex))
|
||||||
return True
|
return True
|
||||||
|
Loading…
Reference in New Issue
Block a user