We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3f0bd2a commit 9f5ddebCopy full SHA for 9f5ddeb
1 file changed
conn.go
@@ -625,10 +625,6 @@ func (c *Conn) readAndBuffer(ctx context.Context) error {
625
hasHandshake = true
626
}
627
628
- var e *alertError
629
- if errors.As(err, &e) && e.IsFatalOrCloseNotify() {
630
- return e
631
- }
632
if err != nil {
633
return err
634
@@ -660,10 +656,11 @@ func (c *Conn) handleQueuedPackets(ctx context.Context) error {
660
656
661
657
662
658
var e *alertError
663
664
665
666
- if err != nil {
659
+ if errors.As(err, &e) {
+ if e.IsFatalOrCloseNotify() {
+ return e
+ }
+ } else if err != nil {
667
668
669
0 commit comments