monitor.py killing softly

This commit is contained in:
Stephen Diehl
2012-04-04 14:32:31 -04:00
parent 42f16ccdfb
commit f3035c5739
+3 -2
View File
@@ -256,14 +256,14 @@ class Controller(object):
def send_hardkill(self):
kill_frame = CONTROL_FRAME(
CONTROL_PROTOCOL.KILL,
None
''
)
self.pub.send(kill_frame)
def send_softkill(self):
soft_frame = CONTROL_FRAME(
CONTROL_PROTOCOL.KILL,
None
''
)
self.pub.send(soft_frame)
@@ -473,6 +473,7 @@ class Controller(object):
self.state = CONTROL_STATES.TERMINATE
self.logging.info('[Controller] Soft Shutdown')
self.send_softkill()
#for asoc in self.associated:
#asoc.close()