Skip to content

Commit

Permalink
Fix restart
Browse files Browse the repository at this point in the history
  • Loading branch information
ngrilly committed Mar 21, 2016
1 parent 2d077d9 commit 9372bb8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion start.go
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,9 @@ func (f *Forego) startProcess(idx, procNum int, proc ProcfileEntry, env Env, of

// Prevent goroutine from exiting before process has finished.
defer func() { <-finished }()
defer f.teardown.Fall()
if !flagRestart {
defer f.teardown.Fall()
}

select {
case <-finished:
Expand Down

0 comments on commit 9372bb8

Please sign in to comment.