forked from quic-go/quic-go
remove incorrect error check when sending a packet
There's no need for a check if more than protocol.MaxTrackedSentPackets packets were sent. There are certain situations where we allow (via SendingAllowed()) sending of more packets, and we shouldn't throw an error when the session then actually sends these packets.
This commit is contained in:
@@ -132,10 +132,8 @@ func (mr *MockSentPacketHandlerMockRecorder) SendingAllowed() *gomock.Call {
|
||||
}
|
||||
|
||||
// SentPacket mocks base method
|
||||
func (m *MockSentPacketHandler) SentPacket(arg0 *ackhandler.Packet) error {
|
||||
ret := m.ctrl.Call(m, "SentPacket", arg0)
|
||||
ret0, _ := ret[0].(error)
|
||||
return ret0
|
||||
func (m *MockSentPacketHandler) SentPacket(arg0 *ackhandler.Packet) {
|
||||
m.ctrl.Call(m, "SentPacket", arg0)
|
||||
}
|
||||
|
||||
// SentPacket indicates an expected call of SentPacket
|
||||
|
||||
Reference in New Issue
Block a user