X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fstreamsocket.cpp;fp=source%2Fstreamsocket.cpp;h=59590846f16d0661917b4134b4b6aaa9ef919abb;hb=e2f4514a4530e0b5c4eb270bab970ab9391b5085;hp=cd810d5253e14e2990d204c4af12096f5be7278b;hpb=bc7f7210f6963c7bd23cce9cea3d3e82a2968f98;p=libs%2Fnet.git diff --git a/source/streamsocket.cpp b/source/streamsocket.cpp index cd810d5..5959084 100644 --- a/source/streamsocket.cpp +++ b/source/streamsocket.cpp @@ -27,7 +27,6 @@ StreamSocket::StreamSocket(Family af, int proto): int StreamSocket::poll_connect(const Time::TimeDelta &timeout) { - check_state(false); if(!connecting) throw bad_socket_state("not connecting"); @@ -71,8 +70,6 @@ int StreamSocket::poll_connect(const Time::TimeDelta &timeout) int StreamSocket::connect(const SockAddr &addr) { - check_state(false); - if(connected) throw bad_socket_state("already connected");