Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Aio - Exception loop when serial device dissapears #68

Closed
ilfirin-ms opened this issue Jan 19, 2016 · 2 comments
Closed

Aio - Exception loop when serial device dissapears #68

ilfirin-ms opened this issue Jan 19, 2016 · 2 comments

Comments

@ilfirin-ms
Copy link

When in Protocol serial device dissapears, in my case Bluetooth RFComm died, neverending exception loop started:

Traceback (most recent call last):
  File "/usr/lib/python3.4/asyncio/events.py", line 120, in _run
  File "/usr/lib/python3.4/site-packages/serial/aio.py", line 48, in _read_ready
  File "/usr/lib/python3.4/site-packages/serial/serialposix.py", line 505, in read
serial.serialutil.SerialException: read failed: device reports readiness to read but returned no data (device disconnected or multiple access on port?)

During handling of the above exception, another exception occurred:

--||--
@zsquareplusc
Copy link
Member

I see.. A fix has been committed that closes the connection in this case. Can you test the current version from git?

@ilfirin-ms
Copy link
Author

I surely can and .. working perfect. Thank you very much for promt fix, you were so fast, I even hadn't time to create workaround,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants