[wesnoth-commits] [wesnoth/wesnoth] 8fe5ce: wesnothd: fix prematurely adding new players to ga...
GitHub
noreply at github.com
Wed Jun 6 16:45:40 UTC 2018
Branch: refs/heads/1.14
Home: https://github.com/wesnoth/wesnoth
Commit: 8fe5cee2e495d2f132909e22f8a270c0f3e9d362
https://github.com/wesnoth/wesnoth/commit/8fe5cee2e495d2f132909e22f8a270c0f3e9d362
Author: loonycyborg <loonycyborg at gmail.com>
Date: 2018-06-06 (Wed, 06 Jun 2018)
Changed paths:
M src/server/server.cpp
Log Message:
-----------
wesnothd: fix prematurely adding new players to games_and_users_list_
If dc happens during asio read that would call server::add_player
then a "ghost" player will appear in games_and_users_list_. Fix works by
moving the list update into the handler, it will be called only if read is
successful.
**NOTE:** This service been marked for deprecation: https://developer.github.com/changes/2018-04-25-github-services-deprecation/
Functionality will be removed from GitHub.com on January 31st, 2019.
More information about the Commits
mailing list