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: Jon Daniel
Subject: [Wesnoth-cvs-commits] wesnoth/src network_worker.cpp
Date: Thu, 04 Aug 2005 18:47:59 -0400

CVSROOT:        /cvsroot/wesnoth
Module name:    wesnoth
Branch:         
Changes by:     Jon Daniel <address@hidden>     05/08/04 22:47:58

Modified files:
        src            : network_worker.cpp 

Log message:
        fix send stats

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

Patches:
Index: wesnoth/src/network_worker.cpp
diff -u wesnoth/src/network_worker.cpp:1.34 wesnoth/src/network_worker.cpp:1.35
--- wesnoth/src/network_worker.cpp:1.34 Thu Aug  4 22:43:19 2005
+++ wesnoth/src/network_worker.cpp      Thu Aug  4 22:47:58 2005
@@ -1,4 +1,4 @@
-/* $Id: network_worker.cpp,v 1.34 2005/08/04 22:43:19 j_daniel Exp $ */
+/* $Id: network_worker.cpp,v 1.35 2005/08/04 22:47:58 j_daniel Exp $ */
 /*
    Copyright (C) 2003-5 by David White <address@hidden>
    Part of the Battle for Wesnoth Project http://www.wesnoth.org/
@@ -81,11 +81,10 @@
                const int bytes_to_send = static_cast<int>(size - upto);
                const int res = SDLNet_TCP_Send(sock, &buf[upto], 
bytes_to_send);
 
-               current_transfer_stats.first += res;
-
                if(res < 0 || res != bytes_to_send && errno != EAGAIN)
                        return SOCKET_ERROR;
 
+               current_transfer_stats.first += res;
                upto += res;
        }
        return SOCKET_READY;




reply via email to

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