コード例 #1
0
 def __init__(self, util, peppy):
     """ Initializer. Start web server in separate thread
     
     :param util: utility object contains configuration settings
     :param peppy: the reference to the root object
     """
     self.lock = RLock()
     self.config = util.config
     self.peppy = peppy
     self.web_clients = []
     self.player_listeners = []
     self.json_factory = JsonFactory(util, peppy)
     thread = Thread(target=self.start_web_server)
     thread.daemon = True
     thread.start()