mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-31 14:33:54 -04:00
Silly bug in smart device flood control
This commit is contained in:
parent
b94d849f0b
commit
c080004682
@ -586,7 +586,7 @@ class SMART_DEVICE_APP(DeviceConfig, DevicePlugin):
|
|||||||
# the device.
|
# the device.
|
||||||
raise OpenFailed('')
|
raise OpenFailed('')
|
||||||
try:
|
try:
|
||||||
peer = self.device_socket.getpeername()
|
peer = self.device_socket.getpeername()[0]
|
||||||
self.connection_attempts[peer] = 0
|
self.connection_attempts[peer] = 0
|
||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
|
Loading…
x
Reference in New Issue
Block a user