mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
Merge pull request #600 from matrixise/master
Close all the listener sockets
This commit is contained in:
commit
054f1135db
@ -367,7 +367,7 @@ class Arbiter(object):
|
||||
# do we need to change listener ?
|
||||
if old_address != self.cfg.address:
|
||||
# close all listeners
|
||||
[l.close for l in self.LISTENERS]
|
||||
[l.close() for l in self.LISTENERS]
|
||||
# init new listeners
|
||||
self.LISTENERS = create_sockets(self.cfg, self.log)
|
||||
self.log.info("Listening at: %s", ",".join(str(self.LISTENERS)))
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user