mirror of
https://github.com/shtorm-7/sing-box-extended.git
synced 2026-12-05 08:04:11 +00:00
Fix endpoint lifecycle ordering and device reconfiguration
This commit is contained in:
@@ -627,8 +627,10 @@ func (s *ServerEndpoint) readLoop(ctx context.Context) {
|
||||
err = s.device.WriteInboundBuffers(packetBuffers)
|
||||
buf.ReleaseMulti(packetBuffers)
|
||||
if err != nil {
|
||||
s.logger.Error(E.Cause(err, "write packet to device"))
|
||||
return
|
||||
if E.IsCanceled(err) || ctx.Err() != nil {
|
||||
return
|
||||
}
|
||||
s.logger.Debug(E.Cause(err, "write packet to device"))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user