github.com/moqsien/xraycore@v1.8.5/common/singbridge/error.go (about)

     1  package singbridge
     2  
     3  import E "github.com/sagernet/sing/common/exceptions"
     4  
     5  func ReturnError(err error) error {
     6  	if E.IsClosedOrCanceled(err) {
     7  		return nil
     8  	}
     9  	return err
    10  }