mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 10:44:09 -04:00
...
This commit is contained in:
parent
68aabb6394
commit
62d4f0d869
@ -760,11 +760,11 @@ class ServerLoop(object):
|
|||||||
if not self.ready:
|
if not self.ready:
|
||||||
return
|
return
|
||||||
self.ready = False
|
self.ready = False
|
||||||
|
self.requests.stop(self.opts.shutdown_timeout)
|
||||||
sock = self.tick_once()
|
sock = self.tick_once()
|
||||||
if hasattr(sock, "close"):
|
if hasattr(sock, "close"):
|
||||||
sock.close()
|
sock.close()
|
||||||
self.socket = None
|
self.socket = None
|
||||||
self.requests.stop(self.opts.shutdown_timeout)
|
|
||||||
|
|
||||||
def tick_once(self):
|
def tick_once(self):
|
||||||
# Touch our own socket to make accept() return immediately.
|
# Touch our own socket to make accept() return immediately.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user