diff --git a/README.md b/README.md index a094b56..9118560 100644 --- a/README.md +++ b/README.md @@ -63,6 +63,7 @@ Check out the **[contributing wiki](https://github.com/pion/webrtc/wiki/Contribu * [Antoine Baché](https://github.com/Antonito) * [Will Forcey](https://github.com/wawesomeNOGUI) * [David Zhao](https://github.com/davidzhao) +* [Juliusz Chroboczek](https://github.com/jech) ### License MIT License - see [LICENSE](LICENSE) for full text diff --git a/udp_mux.go b/udp_mux.go index 34ff236..3e661db 100644 --- a/udp_mux.go +++ b/udp_mux.go @@ -1,7 +1,6 @@ package ice import ( - "errors" "io" "net" "os" @@ -213,7 +212,7 @@ func (m *UDPMuxDefault) connWorker() { if m.IsClosed() { return } else if err != nil { - if errors.Is(err, os.ErrDeadlineExceeded) { + if os.IsTimeout(err) { continue } else if err != io.EOF { logger.Errorf("could not read udp packet: %v", err)