socket: fix read timeout check (was not reached most of the time)
diff --git a/serial/urlhandler/protocol_socket.py b/serial/urlhandler/protocol_socket.py
index 4fe188d..4538e17 100644
--- a/serial/urlhandler/protocol_socket.py
+++ b/serial/urlhandler/protocol_socket.py
@@ -163,8 +163,8 @@
break
except socket.timeout:
# just need to get out of recv from time to time to check if
- # still alive
- continue
+ # still alive and timeout did not expire
+ pass
except socket.error as e:
# connection fails -> terminate loop
raise SerialException('connection failed (%s)' % e)