mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix Calibre Companion sync on Linux
- listen(0) doesn't work on Linux, select.select() and socket.accept() return no connection
This commit is contained in:
parent
61ca420d4b
commit
791691f6bf
@ -1927,7 +1927,7 @@ class SMART_DEVICE_APP(DeviceConfig, DevicePlugin):
|
||||
return message
|
||||
|
||||
try:
|
||||
self.listen_socket.listen(0)
|
||||
self.listen_socket.listen(1)
|
||||
except:
|
||||
message = 'listen on port %d failed' % port
|
||||
self._debug(message)
|
||||
|
Loading…
x
Reference in New Issue
Block a user