fix defer

This commit is contained in:
William Banfield
2021-09-29 14:24:18 -04:00
parent 7679cc5015
commit 41384c6899

View File

@@ -274,7 +274,6 @@ func (r *Reactor) Sync(ctx context.Context) (sm.State, error) {
}
r.mtx.Lock()
defer r.mtx.Unlock()
if r.syncer != nil {
r.mtx.Unlock()
return sm.State{}, errors.New("a state sync is already in progress")