Skip to content

Commit

Permalink
perf: 删除遗留的录像
Browse files Browse the repository at this point in the history
  • Loading branch information
LeeEirc committed May 20, 2024
1 parent 33dc863 commit 69dcac5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/session/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -407,6 +407,7 @@ func (s *Server) RegisterFinishReplayCallback(tunnel TunnelSession) func(guacd.C

if s.VideoWorkerClient != nil && s.UploadReplayToVideoWorker(tunnel, info, dstReplayFilePath) {
logger.Infof("Upload replay file to video worker: %s", dstReplayFilePath)
_ = os.Remove(dstReplayFilePath)
return nil
}
s.RecordLifecycleLog(tunnel.ID, model.ReplayUploadStart, model.EmptyLifecycleLog)
Expand Down

0 comments on commit 69dcac5

Please sign in to comment.