From ed63c3c5a57a13004ae7ff9fc743efae2472081f Mon Sep 17 00:00:00 2001 From: Ivan Krutov Date: Thu, 9 Aug 2018 08:28:12 +0300 Subject: [PATCH] Do not process video in drivers-only mode (fixes #513) --- selenoid.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/selenoid.go b/selenoid.go index fc788407..d4380b44 100644 --- a/selenoid.go +++ b/selenoid.go @@ -157,7 +157,7 @@ func create(w http.ResponseWriter, r *http.Request) { } browser.Caps.VideoScreenSize = videoScreenSize finalVideoName := browser.Caps.VideoName - if browser.Caps.Video { + if browser.Caps.Video && !disableDocker { browser.Caps.VideoName = getTemporaryFileName(videoOutputDir, videoFileExtension) } finalLogName := browser.Caps.LogName @@ -276,7 +276,7 @@ func create(w http.ResponseWriter, r *http.Request) { })} cancelAndRenameFiles := func() { cancel() - if browser.Caps.Video { + if browser.Caps.Video && !disableDocker { oldVideoName := filepath.Join(videoOutputDir, browser.Caps.VideoName) if finalVideoName == "" { finalVideoName = s.ID + videoFileExtension