From a2d170f415b101ba1147fcebe35852abd59d45f3 Mon Sep 17 00:00:00 2001 From: Benjamin Sergeant <“bsergean@gmail.com”> Date: Fri, 19 Apr 2019 09:41:16 -0700 Subject: [PATCH] fix bad merge in IXWebSocketTransport.cpp ... --- ixwebsocket/IXWebSocketTransport.cpp | 21 +-------------------- 1 file changed, 1 insertion(+), 20 deletions(-) diff --git a/ixwebsocket/IXWebSocketTransport.cpp b/ixwebsocket/IXWebSocketTransport.cpp index 1f65fb8f..1a783ea3 100644 --- a/ixwebsocket/IXWebSocketTransport.cpp +++ b/ixwebsocket/IXWebSocketTransport.cpp @@ -240,26 +240,7 @@ namespace ix // exceeds the maximum delay, then close the connection if (pingTimeoutExceeded()) { -<<<<<<< HEAD - if (_readyState == OPEN) - { - // if (1) ping timeout is enabled and (2) duration since last received ping response (PONG) - // exceeds the maximum delay, then close the connection - if (pingTimeoutExceeded()) - { - close(kInternalErrorCode, kPingTimeoutMessage); - } - // If (1) ping is enabled and no ping has been sent for a duration - // exceeding our ping interval, send a ping to the server. - else if (pingIntervalExceeded()) - { - std::stringstream ss; - ss << kPingMessage << "::" << _pingIntervalSecs << "s"; - sendPing(ss.str()); - } - } -======= - close(1011, "Ping timeout"); + close(kInternalErrorCode, kPingTimeoutMessage); } // If (1) ping is enabled and no ping has been sent for a duration // exceeding our ping interval, send a ping to the server.