Author: loonycyborg
Date: Thu Jul 7 17:10:57 2011
New Revision: 50202
URL: http://svn.gna.org/viewcvs/wesnoth?rev=50202&view=rev
Log:
Do not try to cancel operations on a socket that isn't open yet.
Modified:
trunk/src/network_asio.hpp
Modified: trunk/src/network_asio.hpp
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/src/network_asio.hpp?rev=50202&r1=50201&r2=50202&view=diff
==============================================================================
--- trunk/src/network_asio.hpp (original)
+++ trunk/src/network_asio.hpp Thu Jul 7 17:10:57 2011
@@ -110,7 +110,7 @@
*/
void run() { io_service_.run(); }
- void cancel() { socket_.cancel(); }
+ void cancel() { if(socket_.is_open()) { socket_.cancel(); } }
/** True if connected and no high-level operation is in progress */
bool done() const { return done_; }
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits