]> git.tdb.fi Git - libs/net.git/blobdiff - source/communicator.cpp
Exception changes
[libs/net.git] / source / communicator.cpp
index 1bb0fde49592f81d9f9c2fa91a22a52431f45e7a..0209f2d93e6783fd2a402dff1bfecad344da481b 100644 (file)
@@ -73,7 +73,7 @@ Communicator::~Communicator()
 void Communicator::initiate_handshake()
 {
        if(handshake_status!=0)
-               throw InvalidState("Handshaking is already underway or done");
+               throw sequence_error("handshaking already done");
 
        send_handshake();
        handshake_status = 1;