diff options
author | Chocobozzz <me@florianbigard.com> | 2023-05-22 13:44:22 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2023-05-22 13:54:46 +0200 |
commit | 17ecdf61ce1d374cc8ba17601b93c9bda08112b2 (patch) | |
tree | d3405d11636f661815c3ad09821944a5ae26ebfa /server/lib/live/live-manager.ts | |
parent | f3bc1b541619673f14db7de220b9c520a4f35ca8 (diff) | |
download | PeerTube-17ecdf61ce1d374cc8ba17601b93c9bda08112b2.tar.gz PeerTube-17ecdf61ce1d374cc8ba17601b93c9bda08112b2.tar.zst PeerTube-17ecdf61ce1d374cc8ba17601b93c9bda08112b2.zip |
Force stop remote live transcoding
Diffstat (limited to 'server/lib/live/live-manager.ts')
-rw-r--r-- | server/lib/live/live-manager.ts | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/server/lib/live/live-manager.ts b/server/lib/live/live-manager.ts index 68aa18443..f062e2fd3 100644 --- a/server/lib/live/live-manager.ts +++ b/server/lib/live/live-manager.ts | |||
@@ -178,6 +178,10 @@ class LiveManager { | |||
178 | return !!this.rtmpServer | 178 | return !!this.rtmpServer |
179 | } | 179 | } |
180 | 180 | ||
181 | hasSession (sessionId: string) { | ||
182 | return this.getContext().sessions.has(sessionId) | ||
183 | } | ||
184 | |||
181 | stopSessionOf (videoUUID: string, error: LiveVideoError | null) { | 185 | stopSessionOf (videoUUID: string, error: LiveVideoError | null) { |
182 | const sessionId = this.videoSessions.get(videoUUID) | 186 | const sessionId = this.videoSessions.get(videoUUID) |
183 | if (!sessionId) { | 187 | if (!sessionId) { |