mirror of
https://github.com/cmz0228/hysteria-dev.git
synced 2025-06-29 15:59:58 +00:00
chore: allow nil quicReconnectFunc
This commit is contained in:
parent
7481a859b6
commit
536fa24595
@ -189,7 +189,9 @@ func (c *Client) openStreamWithReconnect() (quic.Connection, quic.Stream, error)
|
|||||||
// Temporary error, just return
|
// Temporary error, just return
|
||||||
return nil, nil, err
|
return nil, nil, err
|
||||||
}
|
}
|
||||||
c.quicReconnectFunc(err)
|
if c.quicReconnectFunc != nil {
|
||||||
|
c.quicReconnectFunc(err)
|
||||||
|
}
|
||||||
// Permanent error, need to reconnect
|
// Permanent error, need to reconnect
|
||||||
if err := c.connect(); err != nil {
|
if err := c.connect(); err != nil {
|
||||||
// Still error, oops
|
// Still error, oops
|
||||||
|
Loading…
x
Reference in New Issue
Block a user