Skip to content

Commit

Permalink
fixup! Upgrade to github.com/pion/dtls/v3
Browse files Browse the repository at this point in the history
  • Loading branch information
Danielius1922 committed Aug 7, 2024
1 parent af365e2 commit a54178c
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions net/conn.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,14 +92,14 @@ func (c *Conn) handshake(ctx context.Context) error {
if err == nil {
return nil
}
if !c.cfg.disabledManualCloseAfterHandshake {
errC := c.Close()
if errC == nil {
return err
}
return fmt.Errorf("%v", []error{err, errC})
// if !c.cfg.disabledManualCloseAfterHandshake {
errC := c.Close()
if errC == nil {
return err
}
return err
return fmt.Errorf("%v", []error{err, errC})
// }
// return err
}
return nil
}
Expand Down

0 comments on commit a54178c

Please sign in to comment.