Merge pull request #2485 from lucas-clemente/fix-loss-timer-mutex

fix locking of mutex when qlogging the setting of the loss timer
This commit is contained in:
Marten Seemann
2020-04-16 09:27:20 +07:00
committed by GitHub

View File

@@ -327,8 +327,8 @@ func (t *tracer) DroppedEncryptionLevel(encLevel protocol.EncryptionLevel) {
}
func (t *tracer) SetLossTimer(tt TimerType, encLevel protocol.EncryptionLevel, timeout time.Time) {
now := time.Now()
t.mutex.Lock()
now := time.Now()
t.recordEvent(now, &eventLossTimerSet{
TimerType: tt,
EncLevel: encLevel,