Skip to content
This repository has been archived by the owner on Dec 17, 2024. It is now read-only.

Commit

Permalink
Do not process video in drivers-only mode (fixes #513)
Browse files Browse the repository at this point in the history
  • Loading branch information
vania-pooh committed Aug 9, 2018
1 parent 48f63ff commit ed63c3c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions selenoid.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit ed63c3c

Please sign in to comment.