Skip to content
Snippets Groups Projects
Commit cee34d8f authored by ale's avatar ale
Browse files

actually start the masterelection runner

parent 321fbeeb
No related branches found
No related tags found
No related merge requests found
......@@ -59,7 +59,9 @@ func (m *MasterElection) setState(state int) {
if m.State == state {
return
}
log.Printf("masterelection: status=%s", stateToString(state))
log.Printf("masterelection: %s -> %s",
stateToString(m.State),
stateToString(state))
if m.StateChange != nil {
m.StateChange <- state
}
......
......@@ -251,6 +251,9 @@ func (rc *RadioNode) Run() {
// Start the presence heartbeat.
go rc.presence()
// Start the masterelection runner.
go rc.me.Run()
log.Printf("starting icecast updater")
for {
select {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment