Skip to content

Commit 528596b

Browse files
committed
perf: 删除遗留的录像
1 parent 33dc863 commit 528596b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pkg/session/server.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -407,6 +407,7 @@ func (s *Server) RegisterFinishReplayCallback(tunnel TunnelSession) func(guacd.C
407407

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

0 commit comments

Comments
 (0)