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 printDiscoveryLogs()
|
||||||
go cleanDiscoveryPool()
|
go cleanDiscoveryPool()
|
||||||
go discoveryChangeLoop()
|
|
||||||
go changeCatcherLoop()
|
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
|
// 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{})
|
err = discoveryChange(server.Discovery{})
|
||||||
|
Loading…
Reference in New Issue
Block a user