diff --git a/mopidy_touchscreen/touch_screen.py b/mopidy_touchscreen/touch_screen.py index fb0c350..c3d61fe 100644 --- a/mopidy_touchscreen/touch_screen.py +++ b/mopidy_touchscreen/touch_screen.py @@ -77,16 +77,15 @@ class TouchScreen(pykka.ThreadingActor, core.CoreListener): pygame.display.flip() for event in pygame.event.get(): if event.type == pygame.QUIT: - self.running = False + utils.process.exit_process() elif event.type == pygame.KEYUP and event.key == pygame.K_q: - self.running = False + utils.process.exit_process() elif event.type == pygame.VIDEORESIZE: self.get_display_surface(event.size) self.screen_manager.resize(event) else: self.screen_manager.event(event) pygame.quit() - utils.process.exit_process() def on_start(self): try: