mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-01-20 21:25:08 +01:00
Fix another resource warning
This commit is contained in:
parent
28fc61d74e
commit
e699841551
1 changed files with 2 additions and 1 deletions
|
|
@ -326,10 +326,11 @@ def wait_for_listen(self):
|
|||
if self.uses_ssl:
|
||||
s = ssl.wrap_socket(s)
|
||||
s.connect(('localhost', self.port))
|
||||
s.close()
|
||||
return
|
||||
except socket.error:
|
||||
time.sleep(0.01)
|
||||
finally:
|
||||
s.close()
|
||||
self.log.error('Restarted server did not start listening on:', self.port)
|
||||
|
||||
# WebSocket reload notifier {{{
|
||||
|
|
|
|||
Loading…
Reference in a new issue