mirror of
https://github.com/hkmadao/rtsp2rtmp.git
synced 2025-11-03 09:41:18 +08:00
Merge branch 'develop'
This commit is contained in:
@@ -38,7 +38,10 @@ func (rc *RtspClientManager) ExistsPublisher(code string) bool {
|
|||||||
exists := false
|
exists := false
|
||||||
rc.rcs.Range(func(key, value interface{}) bool {
|
rc.rcs.Range(func(key, value interface{}) bool {
|
||||||
codeKey := key.(string)
|
codeKey := key.(string)
|
||||||
exists = codeKey == code
|
if codeKey == code {
|
||||||
|
exists = true
|
||||||
|
return false
|
||||||
|
}
|
||||||
return true
|
return true
|
||||||
})
|
})
|
||||||
return exists
|
return exists
|
||||||
|
|||||||
Reference in New Issue
Block a user