fix bad merge in IXWebSocketTransport.cpp ...
This commit is contained in:
		@@ -234,13 +234,6 @@ namespace ix
 | 
			
		||||
    {
 | 
			
		||||
        PollResultType pollResult = _socket->poll(_pingIntervalOrTimeoutGCDSecs);
 | 
			
		||||
 | 
			
		||||
        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())
 | 
			
		||||
            {
 | 
			
		||||
<<<<<<< HEAD
 | 
			
		||||
        if (_readyState == OPEN)
 | 
			
		||||
        {
 | 
			
		||||
            // if (1) ping timeout is enabled and (2) duration since last received ping response (PONG)
 | 
			
		||||
@@ -258,18 +251,6 @@ namespace ix
 | 
			
		||||
                sendPing(ss.str());
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
=======
 | 
			
		||||
                close(1011, "Ping timeout");
 | 
			
		||||
            }
 | 
			
		||||
            // 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());
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        // Make sure we send all the buffered data
 | 
			
		||||
        // there can be a lot of it for large messages.
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user