forked from quic-go/quic-go
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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user