Close UDPMux when exit (#1064)
* Close UDPMux when exit * fix test failed
This commit is contained in:
@@ -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()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user