mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Comments and debug statement repair
This commit is contained in:
parent
db967f62ba
commit
25cf777a53
@ -67,7 +67,7 @@ class ConnectionListener (Thread):
|
||||
device_socket = None
|
||||
while self.keep_running:
|
||||
try:
|
||||
time.sleep(1) # Limit to one book per two seconds
|
||||
time.sleep(1)
|
||||
except:
|
||||
# Happens during interpreter shutdown
|
||||
break
|
||||
@ -76,7 +76,6 @@ class ConnectionListener (Thread):
|
||||
break
|
||||
|
||||
if not self.driver.connection_queue.empty():
|
||||
self.driver._debug('queue not empty')
|
||||
queue_not_serviced_count += 1
|
||||
if queue_not_serviced_count >= 3:
|
||||
self.driver._debug('queue not serviced')
|
||||
|
Loading…
x
Reference in New Issue
Block a user