Skip to content

Commit

Permalink
avoid race
Browse files Browse the repository at this point in the history
  • Loading branch information
asabya committed Oct 4, 2021
1 parent 414d197 commit fc0d0a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/replication/replication.go
Original file line number Diff line number Diff line change
Expand Up @@ -282,12 +282,12 @@ func (m *Manager) StartContentWatcher() {
m.repo.Matrix().ContentDownloadFinished(id.String())
m.syncMtx.Lock()
state := m.repo.State().Add([]byte(meta.Tag))
m.syncMtx.Unlock()
log.Debugf("New State: %d\n", state)
err = m.repo.SetState()
if err != nil {
log.Errorf("SetState failed %s\n", err.Error())
}
m.syncMtx.Unlock()
}
}()
}
Expand Down

0 comments on commit fc0d0a8

Please sign in to comment.