Fixed issue on running servers that are data nodes only

pull/1285/head
Paul Dix 2015-02-12 09:59:11 -05:00
parent 9f5bf814d8
commit 3809514cd2
1 changed files with 4 additions and 2 deletions

View File

@ -90,8 +90,10 @@ func Run(config *Config, join, version string, logWriter *os.File) (*messaging.B
go a.ListenAndServe()
}
// broker needs the server to occasionally run continuous queries
b.RunContinuousQueryLoop(s)
// if this is a server running a broker, have it occasionally run continuous queries
if b != nil {
b.RunContinuousQueryLoop(s)
}
// Spin up the collectd server
if config.Collectd.Enabled {