Skip to content

Commit

Permalink
Add sanity check for currently played service for toggle streamrelay
Browse files Browse the repository at this point in the history
  • Loading branch information
Littlesat authored and fairbird committed Feb 2, 2024
1 parent 7d9bb4e commit cecadf1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/python/Screens/InfoBarGenerics.py
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,8 @@ def toggle(self, nav, service):
self.__services.remove(servicestring)
else:
self.__services.append(servicestring)
if nav.getCurrentlyPlayingServiceReference() == service:
currently_playing_service = nav.getCurrentlyPlayingServiceReference()
if currently_playing_service and currently_playing_service == service:
nav.restartService()
self.write()

Expand Down

0 comments on commit cecadf1

Please sign in to comment.