Author: suokko
Date: Tue May 20 13:47:58 2008
New Revision: 26732
URL: http://svn.gna.org/viewcvs/wesnoth?rev=26732&view=rev
Log:
Fixed server networking bug
Modified:
branches/1.4/src/network_worker.cpp
Modified: branches/1.4/src/network_worker.cpp
URL:
http://svn.gna.org/viewcvs/wesnoth/branches/1.4/src/network_worker.cpp?rev=26732&r1=26731&r2=26732&view=diff
==============================================================================
--- branches/1.4/src/network_worker.cpp (original)
+++ branches/1.4/src/network_worker.cpp Tue May 20 13:47:58 2008
@@ -304,7 +304,8 @@
}
const int res = SDLNet_TCP_Send(sock, &buf[upto],
static_cast<int>(size - upto));
- if(!raw_data_only && res == static_cast<int>(size - upto)) {
+ if(res == static_cast<int>(size - upto)) {
+ if (!raw_data_only)
{
const threading::lock lock(*stats_mutex);
transfer_stats[sock].first.transfer(static_cast<size_t>(res));
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits