This is an automated email from the ASF dual-hosted git repository. masaori pushed a commit to branch quic-latest in repository https://gitbox.apache.org/repos/asf/trafficserver.git
commit 919da9dd2fcb6411d71187fdb4de45400ec05d4c Author: Masaori Koshiba <[email protected]> AuthorDate: Thu Mar 29 09:48:05 2018 +0900 Set nullptr when _loss_detection_alarm is canceled --- iocore/net/quic/QUICLossDetector.cc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/iocore/net/quic/QUICLossDetector.cc b/iocore/net/quic/QUICLossDetector.cc index db18228..015d061 100644 --- a/iocore/net/quic/QUICLossDetector.cc +++ b/iocore/net/quic/QUICLossDetector.cc @@ -63,7 +63,11 @@ QUICLossDetector::~QUICLossDetector() { if (this->_loss_detection_alarm) { this->_loss_detection_alarm->cancel(); + this->_loss_detection_alarm = nullptr; } + + this->_transmitter = nullptr; + this->_cc = nullptr; } int @@ -83,6 +87,7 @@ QUICLossDetector::event_handler(int event, Event *edata) if (this->_loss_detection_alarm) { this->_loss_detection_alarm->cancel(); + this->_loss_detection_alarm = nullptr; } break; } @@ -152,6 +157,7 @@ QUICLossDetector::reset() SCOPED_MUTEX_LOCK(lock, this->_loss_detection_mutex, this_ethread()); if (this->_loss_detection_alarm) { this->_loss_detection_alarm->cancel(); + this->_loss_detection_alarm = nullptr; } this->_sent_packets.clear(); @@ -283,6 +289,7 @@ QUICLossDetector::_set_loss_detection_alarm() this->_loss_detection_alarm->cancel(); this->_loss_detection_alarm = nullptr; QUICLDDebug("Loss detection alarm has been unset"); + return; } if (this->_handshake_outstanding) { -- To stop receiving notification emails like this one, please contact [email protected].
