(self)
Called on application shutdown.
        
        Stop the webserver and stop the media backend.
Called on application shutdown.
        
        Stop the webserver and stop the media backend.
Called on application shutdown . Stop the webserver and stop the media backend .
def shutdown(self):
        """
        Called on application shutdown.
        
        Stop the webserver and stop the media backend.
        """
        self._protocol_handler.stop()
        self._media_backend.stop_playing()
        
        if self._opts.daemon:
            self._pidfile.unlink()
def shutdown ( self ) : self . _protocol_handler . stop ( ) self . _media_backend . stop_playing ( ) if self . _opts . daemon : self . _pidfile . unlink ( )