wesnoth-cvs-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Wesnoth-cvs-commits] wesnoth/src network_worker.cpp


From: David White
Subject: [Wesnoth-cvs-commits] wesnoth/src network_worker.cpp
Date: Mon, 05 Sep 2005 09:51:16 -0400

CVSROOT:        /cvsroot/wesnoth
Module name:    wesnoth
Branch:         
Changes by:     David White <address@hidden>    05/09/05 13:51:16

Modified files:
        src            : network_worker.cpp 

Log message:
        made error check slightly more thorough in networking code

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/wesnoth/wesnoth/src/network_worker.cpp.diff?tr1=1.45&tr2=1.46&r1=text&r2=text

Patches:
Index: wesnoth/src/network_worker.cpp
diff -u wesnoth/src/network_worker.cpp:1.45 wesnoth/src/network_worker.cpp:1.46
--- wesnoth/src/network_worker.cpp:1.45 Sun Sep  4 03:35:32 2005
+++ wesnoth/src/network_worker.cpp      Mon Sep  5 13:51:15 2005
@@ -1,4 +1,4 @@
-/* $Id: network_worker.cpp,v 1.45 2005/09/04 03:35:32 Sirp Exp $ */
+/* $Id: network_worker.cpp,v 1.46 2005/09/05 13:51:15 Sirp Exp $ */
 /*
    Copyright (C) 2003-5 by David White <address@hidden>
    Part of the Battle for Wesnoth Project http://www.wesnoth.org/
@@ -82,7 +82,7 @@
                }
                const int res = SDLNet_TCP_Send(sock, &buf[upto], 
static_cast<int>(size - upto));
 
-               if(res == -1) {
+               if(res <= 0) {
 #ifdef EAGAIN
                        if(errno == EAGAIN) {
                                SDL_Delay(100);




reply via email to

[Prev in Thread] Current Thread [Next in Thread]