diff --git a/libraries/networking/src/udt/Connection.cpp b/libraries/networking/src/udt/Connection.cpp index fdf8375ff3..04edc8bb55 100644 --- a/libraries/networking/src/udt/Connection.cpp +++ b/libraries/networking/src/udt/Connection.cpp @@ -412,7 +412,7 @@ bool Connection::processReceivedSequenceNumber(SequenceNumber sequenceNumber, in return false; } - _isReceivingData = _hasReceivedData = true; + _isReceivingData = true; // mark our last receive time as now (to push the potential expiry farther) _lastReceiveTime = p_high_resolution_clock::now(); @@ -810,7 +810,7 @@ void Connection::resetReceiveState() { // the _nakInterval need not be reset, that will happen on loss // clear sync variables - _isReceivingData = _hasReceivedData = false; + _isReceivingData = false; _connectionStart = p_high_resolution_clock::now(); _acksDuringSYN = 1; diff --git a/libraries/networking/src/udt/Connection.h b/libraries/networking/src/udt/Connection.h index 2f2252a139..bf56a468aa 100644 --- a/libraries/networking/src/udt/Connection.h +++ b/libraries/networking/src/udt/Connection.h @@ -129,7 +129,6 @@ private: p_high_resolution_clock::time_point _lastReceiveTime; // holds the last time we received anything from sender bool _isReceivingData { false }; // flag used for expiry of receipt portion of connection - bool _hasReceivedData { false }; // flag used for reset of connection state on second handshake bool _isActive { true }; // flag used for inactivity of connection SequenceNumber _initialReceiveSequenceNumber; // Randomized by peer SendQueue on creation, identifies connection during re-connect requests