discovery: check non-nil syncer upon historical sync tick

This commit is contained in:
Wilmer Paulino 2019-08-13 18:23:05 -07:00
parent 51216c6e5e
commit c405e89197
No known key found for this signature in database
GPG Key ID: 6DF57B9F9514972F

@ -383,9 +383,10 @@ func (m *SyncManager) syncerHandler() {
case <-m.cfg.HistoricalSyncTicker.Ticks():
s := m.forceHistoricalSync()
// If we've already performed our initial historical
// sync, then we have nothing left to do.
if m.IsGraphSynced() {
// If we don't have a syncer available or we've already
// performed our initial historical sync, then we have
// nothing left to do.
if s == nil || m.IsGraphSynced() {
continue
}