more fixes

This commit is contained in:
Philippe G
2021-12-22 15:10:42 -08:00
parent 9dfe90c26f
commit d914e68a9b
2 changed files with 6 additions and 5 deletions

View File

@@ -164,6 +164,8 @@ size_t PlainConnection::writeBlock(const std::vector<uint8_t> &data)
void PlainConnection::closeSocket()
{
if (this->apSock < 0) return;
CSPOT_LOG(info, "Closing socket...");
shutdown(this->apSock, SHUT_RDWR);
close(this->apSock);