commit | dc2beecbb12d0cb77371058756f8c751e2a9585d | [log] [tgz] |
---|---|---|
author | Chris Liechti <cliechti@gmx.net> | Fri Sep 18 21:25:28 2015 +0200 |
committer | Chris Liechti <cliechti@gmx.net> | Fri Sep 18 21:25:28 2015 +0200 |
tree | fbceffa92adf8687e421d71632a07a49956dd3ac | |
parent | 6ed12e01f0bfaa53ea96ee5b9ec06a3414ed56e2 [diff] [blame] |
small fixes
diff --git a/serial/urlhandler/protocol_loop.py b/serial/urlhandler/protocol_loop.py index 801ba79..d07081a 100644 --- a/serial/urlhandler/protocol_loop.py +++ b/serial/urlhandler/protocol_loop.py
@@ -77,7 +77,10 @@ def close(self): self.is_open = False - self.queue.put(None) + try: + self.queue.put_nowait(None) + except queue.Full: + pass super(Serial, self).close() def _reconfigure_port(self):