diff options
author | Chocobozzz <me@florianbigard.com> | 2022-07-18 15:49:15 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2022-07-18 15:49:15 +0200 |
commit | 0755cb89e752edbfac10e72610f6b44ea93debf5 (patch) | |
tree | 0498ad80d43608efa28b21cf3e497638322f300a /server/lib | |
parent | cace0d1a71c266b0b60c159f0ed08011f40ad951 (diff) | |
download | PeerTube-0755cb89e752edbfac10e72610f6b44ea93debf5.tar.gz PeerTube-0755cb89e752edbfac10e72610f6b44ea93debf5.tar.zst PeerTube-0755cb89e752edbfac10e72610f6b44ea93debf5.zip |
Prevent logging error when saving delete live
Diffstat (limited to 'server/lib')
-rw-r--r-- | server/lib/live/live-manager.ts | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/server/lib/live/live-manager.ts b/server/lib/live/live-manager.ts index 206e30d7d..649ad5195 100644 --- a/server/lib/live/live-manager.ts +++ b/server/lib/live/live-manager.ts | |||
@@ -483,6 +483,8 @@ class LiveManager { | |||
483 | 483 | ||
484 | private async saveEndingSession (videoId: number, error: LiveVideoError | null) { | 484 | private async saveEndingSession (videoId: number, error: LiveVideoError | null) { |
485 | const liveSession = await VideoLiveSessionModel.findCurrentSessionOf(videoId) | 485 | const liveSession = await VideoLiveSessionModel.findCurrentSessionOf(videoId) |
486 | if (!liveSession) return | ||
487 | |||
486 | liveSession.endDate = new Date() | 488 | liveSession.endDate = new Date() |
487 | liveSession.error = error | 489 | liveSession.error = error |
488 | 490 | ||