Close UDPMux when exit (#1064)

* Close UDPMux when exit

* fix test failed
This commit is contained in:
cnderrauber
2022-10-01 09:03:58 +08:00
committed by GitHub
parent 550514554f
commit 716f27c435
2 changed files with 4 additions and 1 deletions
+3
View File
@@ -196,6 +196,9 @@ func (r *RoomManager) Stop() {
}
if r.rtcConfig != nil {
if r.rtcConfig.UDPMux != nil {
_ = r.rtcConfig.UDPMux.Close()
}
if r.rtcConfig.UDPMuxConn != nil {
_ = r.rtcConfig.UDPMuxConn.Close()
}