コード例 #1
0
ファイル: __init__.py プロジェクト: jamesagada/platypush
        def _async_stop():
            evt = StopEvent(target=self.device_id,
                            origin=self.device_id,
                            thread_id=self.thread_id)

            self.send_message(evt)
            self.on_stop()
コード例 #2
0
ファイル: __init__.py プロジェクト: RichardChiang/platypush
    def stop(self):
        """ Stops the bus by sending a STOP event """
        evt = StopEvent(target=Config.get('device_id'),
                        origin=Config.get('device_id'),
                        thread_id=self.thread_id)

        self.post(evt)