X-Git-Url: http://developer.intra2net.com/git/?p=libt2n;a=blobdiff_plain;f=src%2Fserver.cpp;h=331bfc3c48fe860939a67b66d2eb27eea4670777;hp=6bc1cba9be811374e1e9d806bad9c00df78b9d99;hb=04d86ba4ad4f14ab08f38804e772ec46a8ac92b0;hpb=8104c8f70605ee24230e5988d7bf68e3fce7465a diff --git a/src/server.cpp b/src/server.cpp index 6bc1cba..331bfc3 100644 --- a/src/server.cpp +++ b/src/server.cpp @@ -18,12 +18,12 @@ ***************************************************************************/ #include +#include #include #include "server.hxx" #include "log.hxx" -#include "t2n_exception.hxx" namespace libt2n { @@ -96,7 +96,7 @@ void server_connection::reset_timeout() void server_connection::add_callback(callback_event_type event, const boost::function& func) { if (event == new_connection) - throw t2n_parameter_error("new_connection callback not allowed for server_connections"); + throw std::logic_error("new_connection callback not allowed for server_connections"); callbacks[event].push_back(func); }