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

prevent nil dereference on CompareAndSwap errors

parent 1a44e23e
No related branches found
No related tags found
No related merge requests found
......@@ -132,6 +132,7 @@ func (m *MasterElection) runMaster(index uint64, stop chan bool) {
m.Log.Println("too many errors, lost lock")
return
}
continue
}
index = resp.EtcdIndex
lastUpdate = t
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment