Пример #1
0
    def stop(self):
        _log.debug( 'stop' )
        self.running = False

        self.sendEvent( Event( "http://id.webbrick.co.uk/events/av/client", 
                "upnp/%s"%(self.name), { 'udn':self.udn, 'name': self.name, 'active': 'False' } ) )

        self._localRouter.unsubscribe( self, 'http://id.webbrick.co.uk/events/av/render/control' )
        self._localRouter.unsubscribe( self, 'http://id.webbrick.co.uk/events/av/transport/control' )
        self._localRouter.unsubscribe( self, 'http://id.webbrick.co.uk/events/av/connection/control' )

        BaseHandler.stop(self)
Пример #2
0
    def stop(self):
        self._log.debug( 'stop' )
        self._localRouter.unsubscribe( self, 'http://id.webbrick.co.uk/events/upnp/debug' )
        self._localRouter.unsubscribe( self, 'http://id.webbrick.co.uk/events/av/transport/control' )
        self._localRouter.unsubscribe( self, 'http://id.webbrick.co.uk/events/av/connection/control' )
        
        # unsubscribe from brisa events events
        self._controlpoint.unsubscribe('new_device_event', self.on_new_device)
        self._controlpoint.unsubscribe('removed_device_event', self.on_removed_device)
        
        # stop the control point
        # TODO: Atm done in start by adding after_stop_func to raector
        # self._controlpoint.stop()

        BaseHandler.stop(self)
        print "about to stop"
        reactor.main_quit()
Пример #3
0
 def stop(self):
     _log.debug( 'stop' )
     self.running = False
     self._taskList.put( ("stop",) )
     BaseHandler.stop(self)
Пример #4
0
 def stop(self):
     self._taskList.put( ("quit",) )
     self._heatmiserDriver.close()
     BaseHandler.stop(self)
Пример #5
0
 def stop(self):
     self._taskList.put( ("quit",) )
     self._LedLightingDriver.close()
     BaseHandler.stop(self)