]> git.pond.sub.org Git - empserver/commitdiff
Remove bogus io_noblocking() from player_login()
authorMarkus Armbruster <armbru@pond.sub.org>
Wed, 22 Apr 2009 17:52:59 +0000 (19:52 +0200)
committerMarkus Armbruster <armbru@pond.sub.org>
Sun, 19 Jul 2009 18:11:52 +0000 (14:11 -0400)
The call switched the connection with the player to blocking I/O for
draining of output before closing the connection.  Looks scary,
because blocking on I/O blocks the complete server process, not just
the player thread.  But we don't do input, and we do output only with
IO_WAIT, which can't block.  So this has no effect.

src/lib/player/login.c

index 58cc96ce3829fb46bbbe2f3ed1211166699e340e..16f27ad1dd20f85b9cf7042ff38722d33686258d 100644 (file)
@@ -118,7 +118,6 @@ player_login(void *ud)
     player->state = PS_SHUTDOWN;
     if (!io_eof(player->iop)) {
        pr_id(player, C_EXIT, "so long...\n");
-       io_noblocking(player->iop, 0);
        while (io_output(player->iop, IO_WAIT) > 0) ;
     }
     player_delete(player);