From 8c23b1c2fd34fc7f20e42391ff4a50584d3f1628 Mon Sep 17 00:00:00 2001 From: Josh Blum Date: Tue, 14 Aug 2018 12:13:37 -0500 Subject: [PATCH] Report error for SoapyRPCSocket close() failure --- Changelog.txt | 1 + common/SoapyRPCSocket.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/Changelog.txt b/Changelog.txt index b1870b0..94d978e 100644 --- a/Changelog.txt +++ b/Changelog.txt @@ -1,6 +1,7 @@ Release 0.4.4 (pending) ========================== +- Report error for SoapyRPCSocket close() failure - SoapyLogAcceptor fix shutdown when connection is lost - SoapyRPCUnpacker fix select logic for small timeouts diff --git a/common/SoapyRPCSocket.cpp b/common/SoapyRPCSocket.cpp index e847d2c..8f7234d 100644 --- a/common/SoapyRPCSocket.cpp +++ b/common/SoapyRPCSocket.cpp @@ -111,6 +111,7 @@ int SoapyRPCSocket::close(void) if (this->null()) return 0; int ret = ::closesocket(_sock); _sock = INVALID_SOCKET; + if (ret != 0) this->reportError("closesocket()"); return ret; }