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:
Jan Christoph Ebersbach 2018-01-10 11:56:10 +01:00 committed by GitHub
parent 61ca420d4b
commit 791691f6bf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)