diff --git a/indexer/indexer.go b/indexer/indexer.go index 7442f9f4..91f5a1b4 100644 --- a/indexer/indexer.go +++ b/indexer/indexer.go @@ -81,7 +81,9 @@ func NewIndexer(db *gorm.DB, notifman notifs.NotificationManager, evtman *events } func (ix *Indexer) Shutdown() { - ix.Crawler.Shutdown() + if ix.Crawler != nil { + ix.Crawler.Shutdown() + } } func (ix *Indexer) HandleRepoEvent(ctx context.Context, evt *repomgr.RepoEvent) error {