mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Merge branch 'master' of github.com:kovidgoyal/calibre
This commit is contained in:
commit
593d5174bf
@ -845,8 +845,9 @@ class SMART_DEVICE_APP(DeviceConfig, DevicePlugin):
|
|||||||
self.is_connected = False
|
self.is_connected = False
|
||||||
if self.is_connected:
|
if self.is_connected:
|
||||||
self.noop_counter += 1
|
self.noop_counter += 1
|
||||||
if only_presence and (
|
if (only_presence and
|
||||||
self.noop_counter % self.SEND_NOOP_EVERY_NTH_PROBE) != 1:
|
self.noop_counter > self.SEND_NOOP_EVERY_NTH_PROBE and
|
||||||
|
(self.noop_counter % self.SEND_NOOP_EVERY_NTH_PROBE) != 1):
|
||||||
try:
|
try:
|
||||||
ans = select.select((self.device_socket,), (), (), 0)
|
ans = select.select((self.device_socket,), (), (), 0)
|
||||||
if len(ans[0]) == 0:
|
if len(ans[0]) == 0:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user