diff --git a/src/SSLSocket.cpp b/src/SSLSocket.cpp index 4b97f47..3259bb7 100644 --- a/src/SSLSocket.cpp +++ b/src/SSLSocket.cpp @@ -196,6 +196,11 @@ namespace fr void SSLSocket::reconfigure_socket() { + if(!connected()) + { + return; + } + int one = 1; #ifndef _WIN32 //Disable Nagle's algorithm diff --git a/src/TcpSocket.cpp b/src/TcpSocket.cpp index 1ab8a21..a09cdb0 100644 --- a/src/TcpSocket.cpp +++ b/src/TcpSocket.cpp @@ -190,6 +190,11 @@ namespace fr void TcpSocket::reconfigure_socket() { + if(!connected()) + { + return; + } + int one = 1; #ifndef _WIN32 //Disable Nagle's algorithm