def reload(self): # We need to transfer the control to the loop's thread self.controller.loop.add_callback_from_signal( self.controller.dispatch, (None, make_json("reload", graceful=True)))
def quit(self): # We need to transfer the control to the loop's thread self.controller.loop.add_callback_from_signal( self.controller.dispatch, (None, make_json("quit")))
def reload(self): # We need to transfer the control to the loop's thread self.controller.loop.add_callback_from_signal( self.controller.dispatch, (None, make_json("reload", graceful=True)) )
def quit(self): # We need to transfer the control to the loop's thread self.controller.loop.add_callback_from_signal( self.controller.dispatch, (None, make_json("quit")) )
def handle_hup(self): self.controller.dispatch((None, make_json("reload", graceful=True)))
def handle_quit(self): self.controller.dispatch((None, make_json("quit")))