Don't reconfigure socket if not connected

This commit is contained in:
Fred Nicolson 2018-08-16 11:37:48 +01:00
parent 8a4ee937b1
commit 6a0cf23519
2 changed files with 10 additions and 0 deletions

View File

@ -196,6 +196,11 @@ namespace fr
void SSLSocket::reconfigure_socket()
{
if(!connected())
{
return;
}
int one = 1;
#ifndef _WIN32
//Disable Nagle's algorithm

View File

@ -190,6 +190,11 @@ namespace fr
void TcpSocket::reconfigure_socket()
{
if(!connected())
{
return;
}
int one = 1;
#ifndef _WIN32
//Disable Nagle's algorithm