From 574563d71158e30b25adb39620dbaba9ad0da129 Mon Sep 17 00:00:00 2001 From: Gabi Melman Date: Mon, 10 Feb 2020 23:00:08 +0200 Subject: [PATCH] Update tcp_sink.h --- include/spdlog/sinks/tcp_sink.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/spdlog/sinks/tcp_sink.h b/include/spdlog/sinks/tcp_sink.h index 4b3a7457..e380d3bb 100644 --- a/include/spdlog/sinks/tcp_sink.h +++ b/include/spdlog/sinks/tcp_sink.h @@ -106,9 +106,9 @@ private: } else { - socket_rv = -1; last_errno = errno; ::close(socket_rv); + socket_rv = -1; } } ::freeaddrinfo(addrinfo_result);