mirror of
https://github.com/langhuihui/monibuca.git
synced 2025-12-24 13:48:04 +08:00
fix: recyle tcp port,when streammode is tcppassive
This commit is contained in:
@@ -429,7 +429,7 @@ func (d *Dialog) Dispose() {
|
||||
// 如果没有设置udp端口,则将MediaPort设置为0,表示不再使用
|
||||
d.gb.udpPorts <- d.MediaPort
|
||||
}
|
||||
} else {
|
||||
} else if d.StreamMode == mrtp.StreamModeTCPPassive {
|
||||
if d.gb.tcpPort == 0 {
|
||||
// 如果没有设置tcp端口,则将MediaPort设置为0,表示不再使用
|
||||
d.gb.tcpPorts <- d.MediaPort
|
||||
|
||||
Reference in New Issue
Block a user