mirror of
https://gitea.phreedom.club/localhost_frssoft/funkwlmpv
synced 2024-11-22 15:59:21 +02:00
Threading always success stop without errors
This commit is contained in:
parent
95874e2289
commit
f5840926a6
|
@ -154,26 +154,18 @@ def radio_load(id_radio=None, type_radio='custom', name=None, related_object=Non
|
|||
favorite_track(player_fw_storage.storage.get(
|
||||
track_url_to_uuid())['id'])
|
||||
elif select == 'Exit':
|
||||
try:
|
||||
radio_event_gen.clear()
|
||||
except:
|
||||
logger.exception('Error stopping Thread radio generator')
|
||||
pass
|
||||
radio_event_gen.clear()
|
||||
soft_volume_reduce()
|
||||
player.playlist_clear()
|
||||
player.stop()
|
||||
player_fw_storage.storage = {}
|
||||
break
|
||||
except:
|
||||
try:
|
||||
radio_event_gen.clear()
|
||||
except:
|
||||
logger.exception('Error stopping Thread radio generator')
|
||||
pass
|
||||
except Exception as E:
|
||||
radio_event_gen.clear()
|
||||
player.playlist_clear()
|
||||
player.stop()
|
||||
player_fw_storage.storage = {}
|
||||
logger.exception('Radio force stopped')
|
||||
logger.exception(f'Radio force stopped: {E}')
|
||||
break
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue