mirror of
https://github.com/refraction-networking/uquic.git
synced 2025-04-04 04:37:36 +03:00
fix error message for stream deletion errors
This commit is contained in:
parent
914193cc9d
commit
394ff04fb1
2 changed files with 24 additions and 4 deletions
|
@ -139,14 +139,14 @@ func (m *streamsMap) DeleteStream(id protocol.StreamID) error {
|
|||
switch id.Type() {
|
||||
case protocol.StreamTypeUni:
|
||||
if id.InitiatedBy() == m.perspective {
|
||||
return m.outgoingUniStreams.DeleteStream(num)
|
||||
return convertStreamError(m.outgoingUniStreams.DeleteStream(num), protocol.StreamTypeUni, m.perspective)
|
||||
}
|
||||
return m.incomingUniStreams.DeleteStream(num)
|
||||
return convertStreamError(m.incomingUniStreams.DeleteStream(num), protocol.StreamTypeUni, m.perspective.Opposite())
|
||||
case protocol.StreamTypeBidi:
|
||||
if id.InitiatedBy() == m.perspective {
|
||||
return m.outgoingBidiStreams.DeleteStream(num)
|
||||
return convertStreamError(m.outgoingBidiStreams.DeleteStream(num), protocol.StreamTypeBidi, m.perspective)
|
||||
}
|
||||
return m.incomingBidiStreams.DeleteStream(num)
|
||||
return convertStreamError(m.incomingBidiStreams.DeleteStream(num), protocol.StreamTypeBidi, m.perspective.Opposite())
|
||||
}
|
||||
panic("")
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue