[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Wesnoth-cvs-commits] wesnoth/src network.cpp
From: |
David White |
Subject: |
[Wesnoth-cvs-commits] wesnoth/src network.cpp |
Date: |
Tue, 01 Mar 2005 20:18:57 -0500 |
CVSROOT: /cvsroot/wesnoth
Module name: wesnoth
Branch:
Changes by: David White <address@hidden> 05/03/02 01:18:57
Modified files:
src : network.cpp
Log message:
added some assertions to check for errors in network code
CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/wesnoth/wesnoth/src/network.cpp.diff?tr1=1.51&tr2=1.52&r1=text&r2=text
Patches:
Index: wesnoth/src/network.cpp
diff -u wesnoth/src/network.cpp:1.51 wesnoth/src/network.cpp:1.52
--- wesnoth/src/network.cpp:1.51 Sun Feb 27 18:15:21 2005
+++ wesnoth/src/network.cpp Wed Mar 2 01:18:57 2005
@@ -268,7 +268,8 @@
throw network::error("Could not add socket to socket set");
}
- sockets.push_back(connect);
+ sockets.push_back(connect);
+ wassert(schemas.count(connect) == 0);
schemas.insert(std::pair<network::connection,schema_pair>(connect,schema_pair()));
return connect;
@@ -356,7 +357,8 @@
throw network::error("Could not send initial
handshake");
}
- sockets.push_back(connect);
+ sockets.push_back(connect);
+ wassert(schemas.count(connect) == 0);
schemas.insert(std::pair<network::connection,schema_pair>(connect,schema_pair()));
return connect;
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Wesnoth-cvs-commits] wesnoth/src network.cpp,
David White <=