sw: Add shutdown screen
This commit is contained in:
parent
66031c1389
commit
859c898d8a
@ -200,7 +200,7 @@ class radioserv:
|
||||
self.io_event.set()
|
||||
|
||||
async def mpd_main(self):
|
||||
last_title = ""
|
||||
last_title = "Loading..."
|
||||
last_state = ""
|
||||
last_info = ""
|
||||
play_icon_map = {"play" : "▶️", "pause" : "ll", "stop" : "□"}
|
||||
@ -280,6 +280,12 @@ class radioserv:
|
||||
await self.kill_event.wait()
|
||||
self.kill_event.clear()
|
||||
|
||||
# Show shutdown screen
|
||||
self.disp_info.update_text("Shutting down", True);
|
||||
self.disp_info.update_info(" ")
|
||||
self.disp_mgr.set_display(self.disp_info)
|
||||
await asyncio.sleep(0.1)
|
||||
|
||||
io_timer_task.cancel()
|
||||
io_task.cancel()
|
||||
mpd_task.cancel()
|
||||
|
Loading…
Reference in New Issue
Block a user