wesnothd: fix crash when yielding after kick in is_login_allowed()
This commit is contained in:
parent
4c63401607
commit
f8b98a725f
1 changed files with 2 additions and 2 deletions
|
@ -919,9 +919,9 @@ template<class SocketPtr> bool server::is_login_allowed(boost::asio::yield_conte
|
|||
if(name_taken) {
|
||||
if(registered) {
|
||||
// If there is already a client using this username kick it
|
||||
process_command("kick " + p->info().name() + " autokick by registered user", username);
|
||||
process_command("kick " + username + " autokick by registered user", username);
|
||||
// need to wait for it to process
|
||||
while(player_connections_.get<name_t>().count(p->info().name()) > 0) {
|
||||
while(player_connections_.get<name_t>().count(username) > 0) {
|
||||
boost::asio::post(yield);
|
||||
}
|
||||
} else {
|
||||
|
|
Loading…
Add table
Reference in a new issue