summaryrefslogtreecommitdiff
path: root/lib/play/command.go
diff options
context:
space:
mode:
Diffstat (limited to 'lib/play/command.go')
-rw-r--r--lib/play/command.go4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/play/command.go b/lib/play/command.go
index 2cbed88e..f3812dbe 100644
--- a/lib/play/command.go
+++ b/lib/play/command.go
@@ -23,14 +23,12 @@ type command struct {
}
func newCommand(req *Request, workingDir string) (cmd *command, err error) {
- const defCommandTimeout = 30 * time.Second
-
cmd = &command{
buf: &bytes.Buffer{},
pid: make(chan int, 1),
}
var ctxParent = context.Background()
- cmd.ctx, cmd.ctxCancel = context.WithTimeout(ctxParent, defCommandTimeout)
+ cmd.ctx, cmd.ctxCancel = context.WithTimeout(ctxParent, Timeout)
var userHomeDir string