Exemplo n.º 1
0
def main():
    try:
        server = GameDroidServer()
        server.run()
    finally:
        if inhibitor.is_inhibited():
            inhibitor.stop()
Exemplo n.º 2
0
def main():
	try:
		server = GameDroidServer()
		server.run()
	finally:
		if inhibitor.is_inhibited():
			inhibitor.stop()
Exemplo n.º 3
0
 def on_device_disconnected(self):
     with self.lock as lock:
         self.devices -= 1
         if self.devices == 0:
             print("Screensaver released")
             inhibitor.stop()
Exemplo n.º 4
0
	def on_device_disconnected(self):
		with self.lock as lock:
			self.devices -= 1
			if self.devices == 0:
				print("Screensaver released")
				inhibitor.stop()