Skip to content

Commit 60355bf

Browse files
committed
fix some potentially confusing Process.start() comment
1 parent 9b2ed24 commit 60355bf

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

proxy/process.go

+4-1
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,9 @@ func (p *Process) start() error {
116116
return fmt.Errorf("can not start(), upstream proxy missing")
117117
}
118118

119-
// wait for the other start() to complete
119+
// multiple start() calls will wait for the one that is actually starting to
120+
// complete before proceeding.
121+
// ===========
120122
curState := p.CurrentState()
121123

122124
if curState == StateReady {
@@ -132,6 +134,7 @@ func (p *Process) start() error {
132134

133135
return nil
134136
}
137+
// ===========
135138

136139
// There is the possibility of a hard to replicate race condition where
137140
// curState *WAS* StateStopped but by the time we get to the p.stateMutex.Lock()

0 commit comments

Comments
 (0)