mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Remove broken code that does nothing useful
This commit is contained in:
parent
c6bdca08aa
commit
61c1703402
@ -140,21 +140,6 @@ class ConnectionListener(Thread):
|
|||||||
self.driver.listen_socket.settimeout(None)
|
self.driver.listen_socket.settimeout(None)
|
||||||
device_socket.settimeout(None)
|
device_socket.settimeout(None)
|
||||||
|
|
||||||
try:
|
|
||||||
peer = self.driver.device_socket.getpeername()[0]
|
|
||||||
attempts = self.drjver.connection_attempts.get(peer, 0)
|
|
||||||
if attempts >= self.MAX_UNSUCCESSFUL_CONNECTS:
|
|
||||||
self.driver._debug('too many connection attempts from', peer)
|
|
||||||
device_socket.close()
|
|
||||||
device_socket = None
|
|
||||||
# raise InitialConnectionError(_('Too many connection attempts from %s') % peer)
|
|
||||||
else:
|
|
||||||
self.driver.connection_attempts[peer] = attempts + 1
|
|
||||||
except InitialConnectionError:
|
|
||||||
raise
|
|
||||||
except:
|
|
||||||
pass
|
|
||||||
|
|
||||||
try:
|
try:
|
||||||
self.driver.connection_queue.put_nowait(device_socket)
|
self.driver.connection_queue.put_nowait(device_socket)
|
||||||
except Queue.Full:
|
except Queue.Full:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user