Fixed crash when user was associated with backend which was going to die
This commit is contained in:
parent
68c10f4ff8
commit
e2d8481aaa
1 changed files with 1 additions and 1 deletions
|
@ -912,7 +912,7 @@ NetworkPluginServer::Backend *NetworkPluginServer::getFreeClient() {
|
|||
bool spawnNew = false;
|
||||
for (std::list<Backend *>::const_iterator it = m_clients.begin(); it != m_clients.end(); it++) {
|
||||
// This backend is free.
|
||||
if ((*it)->users.size() < CONFIG_INT(m_config, "service.users_per_backend") && c->connection) {
|
||||
if ((*it)->users.size() < CONFIG_INT(m_config, "service.users_per_backend") && (*it)->connection) {
|
||||
c = *it;
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue