pyremoteplay icon indicating copy to clipboard operation
pyremoteplay copied to clipboard

Error buffer :(

Open natrix5369 opened this issue 1 year ago • 1 comments

My code:

mybot.Device.device.controller.stick("left", point=(0.7, 0.7))
print("left! 07 07")
time.sleep(0.1)
mybot.Device.device.controller.button('CROSS', 'tap')
print("JUMP!")
time.sleep(1)
mybot.Device.device.controller.stick("left", point=(0.7, 0.7))
mybot.Device.device.controller.button('CROSS', 'tap')

after mybot.Device.device.controller.stick("left", point=(0.7, 0.7)) mybot.Device.device.controller.button('CROSS', 'tap')

I get an error: File "D:\github_other\rust_console_fishing\venv\lib\site-packages\pyremoteplay\stream.py", line 77, in sendto self.transport.sendto(data, addr) File "P:\Python\python38_64\lib\asyncio\proactor_events.py", line 495, in sendto self._buffer.append((bytes(data), addr)) AttributeError: 'NoneType' object has no attribute 'append'

The error does not always appear. Time delays sometimes solve the problem, but in the main program it causes the session to crash. How to fix it ?

natrix5369 avatar Jun 19 '23 11:06 natrix5369