Skip to content

Commit 10b26eb

Browse files
committed
Fix race condition
1 parent 68df068 commit 10b26eb

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

command.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,6 @@ func (c *Command) Execute() error {
174174
c.exitCode = 0
175175
case <-timeoutChan:
176176
quit <- true
177-
close(done)
178177
if err := cmd.Process.Kill(); err != nil {
179178
return fmt.Errorf("Timeout occurred and can not kill process with pid %v", cmd.Process.Pid)
180179
}

0 commit comments

Comments
 (0)