Skip to content

Commit ec52a14

Browse files
authored
[Geneva] close valid socket on disconnection (open-telemetry#544)
1 parent 6f07d49 commit ec52a14

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

exporters/geneva/src/socket_data_transport.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ bool SocketDataTransport::Send(MetricsEventType event_type,
7777
bool SocketDataTransport::Disconnect() noexcept {
7878
if (connected_) {
7979
connected_ = false;
80-
if (socket_.invalid()) {
80+
if (!socket_.invalid()) {
8181
socket_.close();
8282
return true;
8383
}

0 commit comments

Comments
 (0)