Client: added connections_mutex unlocks when performing reconnect
This commit is contained in:
parent
d0e417cdd9
commit
88177647b8
1 changed files with 4 additions and 1 deletions
|
|
@ -541,10 +541,13 @@ namespace SimpleWeb {
|
|||
session->connection->attempt_reconnect = false;
|
||||
session->connection->in_use = true;
|
||||
connections.emplace(session->connection);
|
||||
lock.unlock();
|
||||
this->connect(session);
|
||||
}
|
||||
else
|
||||
else {
|
||||
lock.unlock();
|
||||
session->callback(session->connection, ec);
|
||||
}
|
||||
}
|
||||
else
|
||||
session->callback(session->connection, ec);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue