cycleServer is a pure function, save the result

This commit is contained in:
Sean Chittenden 2016-02-24 20:25:50 -08:00
parent 94f79d2c3d
commit 49a5a1ab84
1 changed files with 1 additions and 1 deletions

View File

@ -213,7 +213,7 @@ func (sm *ServerManager) NotifyFailedServer(server *server_details.ServerDetails
serverCfg = sm.getServerConfig() serverCfg = sm.getServerConfig()
if len(serverCfg.servers) > 0 && serverCfg.servers[0] == server { if len(serverCfg.servers) > 0 && serverCfg.servers[0] == server {
serverCfg.cycleServer() serverCfg.servers = serverCfg.cycleServer()
sm.saveServerConfig(serverCfg) sm.saveServerConfig(serverCfg)
} }
} }