]> git.tdb.fi Git - libs/net.git/blobdiff - source/http/client.cpp
One more exception change
[libs/net.git] / source / http / client.cpp
index 0729544a7ce0686754f721e8e6dee3e30cd7c40e..3d14b04e59d45b22889d8c699eab428829a16ea5 100644 (file)
@@ -1,4 +1,3 @@
-#include <msp/core/except.h>
 #include <msp/core/refptr.h>
 #include <msp/net/resolve.h>
 #include <msp/time/units.h>
@@ -38,7 +37,7 @@ void Client::use_event_dispatcher(IO::EventDispatcher *ed)
 void Client::start_request(const Request &r)
 {
        if(request)
-               throw InvalidState("Already processing a request");
+               throw client_busy();
 
        string host = r.get_header("Host");
        if(host.find(':')==string::npos)