fix crash when webrtcICETCPMuxAddress is already taken

This commit is contained in:
aler9 2022-12-30 15:42:35 +01:00
parent b27c363ecf
commit 3e0419358a
1 changed files with 0 additions and 1 deletions

View File

@ -137,7 +137,6 @@ func newWebRTCServer(
if iceTCPMuxAddress != "" { if iceTCPMuxAddress != "" {
tcpMuxLn, err = net.Listen("tcp", iceTCPMuxAddress) tcpMuxLn, err = net.Listen("tcp", iceTCPMuxAddress)
if err != nil { if err != nil {
tcpMuxLn.Close()
return nil, err return nil, err
} }