Close all the listener sockets

This commit is contained in:
Stephane Wirtel 2013-08-27 11:24:32 +02:00
parent 40bc38bb2f
commit 7ed7ca998d

View File

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