Clean up how quit and server shutdown trigger connection close
authorMarkus Armbruster <armbru@pond.sub.org>
Sun, 29 Jan 2012 09:44:28 +0000 (10:44 +0100)
committerMarkus Armbruster <armbru@pond.sub.org>
Tue, 21 Feb 2012 17:11:13 +0000 (18:11 +0100)
commit8549efbc1904e377c05e385844fe1adada61d573
tree13cc3398e603251467bde2e4692175da99c4ec42
parent0a7306a5ac9e207727ef38892c88cba4323a0deb
Clean up how quit and server shutdown trigger connection close

Simply set the player connection's EOF indicator.  Cleaner than
setting player->state to PS_SHUTDOWN from random places.

Move the assignment of PS_PLAYING from player_main() to its caller
play_cmd(), so that player->state is exclusively controlled in
login.c.
src/lib/player/login.c
src/lib/player/player.c
src/server/main.c