1.1 --- a/src/game.c Thu Apr 17 11:41:02 2014 +0200 1.2 +++ b/src/game.c Thu Apr 17 11:55:36 2014 +0200 1.3 @@ -327,12 +327,6 @@ 1.4 1.5 static int recvmove(GameState *gamestate, GameInfo *gameinfo, int opponent) { 1.6 1.7 - if (net_setnonblocking(opponent, 1)) { 1.8 - printw("Cannot setup nonblocking IO on network socket"); 1.9 - cbreak(); getch(); 1.10 - exit(EXIT_FAILURE); 1.11 - } 1.12 - 1.13 struct timeval timeout; 1.14 while (1) { 1.15 timecontrol(gamestate, gameinfo); 1.16 @@ -402,6 +396,9 @@ 1.17 } else { 1.18 net_send_code(opponent, NETCODE_DECLINE); 1.19 } 1.20 + break; 1.21 + default: 1.22 + printw("\nInvalid network request."); 1.23 } 1.24 } 1.25 }