diff --git a/gather.go b/gather.go index f6ea9fc..ea4f15c 100644 --- a/gather.go +++ b/gather.go @@ -97,7 +97,7 @@ func (a *Agent) GatherCandidates() error { gatherErrChan := make(chan error, 1) runErr := a.run(func(agent *Agent) { - if a.gatheringState == GatheringStateGathering { + if a.gatheringState != GatheringStateNew { gatherErrChan <- ErrMultipleGatherAttempted return } else if a.onCandidateHdlr == nil {