fix handling of service stop message

(Boeing r1809)
This commit is contained in:
ahrenholz 2013-12-09 22:14:05 +00:00
parent fce1cf18ee
commit 5a1e8bfdca

View file

@ -1095,7 +1095,8 @@ class CoreRequestHandler(SocketServer.BaseRequestHandler):
if self.session.master:
self.warn("Unexpected event message: SHUTDOWN state received " \
"at session master")
elif eventtype in (coreapi.CORE_EVENT_START, coreapi.CORE_EVENT_RESTART, \
elif eventtype in (coreapi.CORE_EVENT_START, coreapi.CORE_EVENT_STOP, \
coreapi.CORE_EVENT_RESTART, \
coreapi.CORE_EVENT_RECONFIGURE):
name = msg.gettlv(coreapi.CORE_TLV_EVENT_NAME)
# TODO: register system for event message handlers, like confobjs