Skip to content

Commit

Permalink
When box is shutting down do not show stream is busy for stream relay
Browse files Browse the repository at this point in the history
By filtering out local host in the list of the streaming clients
  • Loading branch information
Littlesat committed May 13, 2023
1 parent 688de47 commit b38e77f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/python/Screens/Standby.py
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ def getReasons(session, retvalue=QUIT_SHUTDOWN):
reasons.append((ngettext("%d job is running in the background!", "%d jobs are running in the background!", jobs) % jobs))
if checkTimeshiftRunning():
reasons.append(_("You seem to be in timeshift!"))
if eStreamServer.getInstance().getConnectedClients() or StreamServiceList:
if [stream for stream in eStreamServer.getInstance().getConnectedClients() if stream[0] != '127.0.0.1'] or StreamServiceList:
reasons.append(_("Client is streaming from this box!"))
if not reasons and mediafilesInUse(session) and retvalue in (QUIT_SHUTDOWN, QUIT_REBOOT, QUIT_UPGRADE_FP, QUIT_UPGRADE_PROGRAM):
reasons.append(_("A file from media is in use!"))
Expand Down

0 comments on commit b38e77f

Please sign in to comment.