Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Skip 'stream relay' service if need stop stream #3965

Merged
merged 1 commit into from
Apr 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/python/RecordTimer.py
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,7 @@ def activate(self):
self.backoff = 0
return True
self.log(7, "prepare failed")
if eStreamServer.getInstance().getConnectedClients():
if NavigationInstance.instance.getClientsStreaming():
eStreamServer.getInstance().stopStream()
return False
if self.first_try_prepare or (self.ts_dialog is not None and not self.checkingTimeshiftRunning()):
Expand Down
2 changes: 1 addition & 1 deletion lib/python/Screens/ServiceStopScreen.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def stopService(self):
if hasattr(self.session, 'pip'):
del self.session.pip
self.session.pipshown = False
if eStreamServer.getInstance() and eStreamServer.getInstance().getConnectedClients():
if self.session.nav.getClientsStreaming():
eStreamServer.getInstance().stopStream()

def __onClose(self):
Expand Down