Don't run callback stuff when callback is not configured
This commit is contained in:
parent
709c47af3e
commit
a9d7abbdd5
@ -193,8 +193,11 @@ func main() {
|
||||
|
||||
go printDiscoveryLogs()
|
||||
go cleanDiscoveryPool()
|
||||
|
||||
if len(config.Callback) > 0 {
|
||||
go discoveryChangeLoop()
|
||||
go changeCatcherLoop()
|
||||
}
|
||||
|
||||
// When the daemon boots up we trigger discovery change event so the config can be setup via callback script if there is any
|
||||
err = discoveryChange(server.Discovery{})
|
||||
|
Loading…
Reference in New Issue
Block a user