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: Sat, 03 Sep 2005 23:35:32 -0400

CVSROOT:        /cvsroot/wesnoth
Module name:    wesnoth
Branch:         
Changes by:     David White <address@hidden>    05/09/04 03:35:32

Modified files:
        src            : network_worker.cpp 

Log message:
        fixed bug where the program could freeze up when networked -- happened 
especially on windows

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

Patches:
Index: wesnoth/src/network_worker.cpp
diff -u wesnoth/src/network_worker.cpp:1.44 wesnoth/src/network_worker.cpp:1.45
--- wesnoth/src/network_worker.cpp:1.44 Fri Aug 19 15:31:50 2005
+++ wesnoth/src/network_worker.cpp      Sun Sep  4 03:35:32 2005
@@ -1,4 +1,4 @@
-/* $Id: network_worker.cpp,v 1.44 2005/08/19 15:31:50 j_daniel Exp $ */
+/* $Id: network_worker.cpp,v 1.45 2005/09/04 03:35:32 Sirp Exp $ */
 /*
    Copyright (C) 2003-5 by David White <address@hidden>
    Part of the Battle for Wesnoth Project http://www.wesnoth.org/
@@ -166,7 +166,7 @@
                        }
                }
 
-               const ssize_t res = SDLNet_TCP_Recv(sock, beg, end - beg);
+               const int res = SDLNet_TCP_Recv(sock, beg, end - beg);
                if(res <= 0) {
                        if(SDLNet_CheckSockets(set, 15000) <= 0) {
                                ERR_NW << "SDLNet_CheckSockets: " << 
strerror(errno) << "\n";




reply via email to

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