Author: baufo
Date: Tue Oct 7 17:53:32 2008
New Revision: 29951
URL: http://svn.gna.org/viewcvs/wesnoth?rev=29951&view=rev
Log:
not actually fixing bug #12391 but preventing the server from going down
completely and making it easier to discover
Modified:
trunk/src/server/server.cpp
Modified: trunk/src/server/server.cpp
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/src/server/server.cpp?rev=29951&r1=29950&r2=29951&view=diff
==============================================================================
--- trunk/src/server/server.cpp (original)
+++ trunk/src/server/server.cpp Tue Oct 7 17:53:32 2008
@@ -848,6 +848,13 @@
}
e.disconnect();
DBG_SERVER << "done closing socket...\n";
+
+ // Catch user_handler exceptions here, to prevent the
+ // server from going down completely. Once we are sure
+ // all user_handler exceptions are caught correctly
+ // this can removed.
+ } catch (user_handler::error e) {
+ ERR_SERVER << "Uncaught user_handler exception: " <<
e.message << "\n";
}
}
}
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits