mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-02-25 06:23:43 +01: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
1 changed files with 1 additions and 1 deletions
|
|
@ -1927,7 +1927,7 @@ def _startup_on_demand(self):
|
|||
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…
Reference in a new issue