mirror of
https://github.com/Monibuca/engine.git
synced 2025-10-21 15:49:34 +08:00
1、增加SErepublish事件表示再次发布成功事件,使得SEPublish事件表示第一次发布成功。
2、修复push时ReConnectCount没有计数增加。 3、使用github.com/quic-go/quic-go v0.32.0版本。 4、修复订阅模式>1时没有从IDR帧开始的问题。
This commit is contained in:
@@ -367,6 +367,8 @@ type Pusher struct {
|
||||
}
|
||||
|
||||
// 是否需要重连
|
||||
func (pub *Pusher) Reconnect() bool {
|
||||
return pub.Config.RePush == -1 || pub.ReConnectCount <= pub.Config.RePush
|
||||
func (pub *Pusher) Reconnect() (result bool) {
|
||||
result = pub.Config.RePush == -1 || pub.ReConnectCount <= pub.Config.RePush
|
||||
pub.ReConnectCount++
|
||||
return
|
||||
}
|
||||
|
Reference in New Issue
Block a user