syz-manager: ask reproducers from hub only if connected to dashboard

All reproducers from hub produce too much load on local managers.
This commit is contained in:
Dmitry Vyukov 2018-02-22 20:21:07 +01:00
parent 6153a72ee1
commit 87044370b8

View File

@ -1113,7 +1113,7 @@ func (mgr *Manager) hubSync() {
mgr.mu.Unlock()
if mgr.cfg.Reproduce {
if mgr.cfg.Reproduce && mgr.dash != nil {
needReproReply := make(chan bool)
mgr.needMoreRepros <- needReproReply
a.NeedRepros = <-needReproReply