mirror of
https://github.com/langhuihui/monibuca.git
synced 2025-11-02 19:04:00 +08:00
feat: dynamic buffer time
This commit is contained in:
@@ -4,6 +4,7 @@ import (
|
||||
"errors"
|
||||
"io"
|
||||
"net"
|
||||
"runtime/debug"
|
||||
|
||||
"m7s.live/m7s/v5"
|
||||
"m7s.live/m7s/v5/plugin/rtmp/pb"
|
||||
@@ -47,6 +48,7 @@ func (p *RTMPPlugin) OnTCPConnect(conn *net.TCPConn) {
|
||||
nc.Destroy()
|
||||
if p := recover(); p != nil {
|
||||
err = p.(error)
|
||||
logger.Error(err.Error(), "stack", string(debug.Stack()))
|
||||
}
|
||||
if len(receivers) > 0 {
|
||||
for _, receiver := range receivers {
|
||||
|
||||
Reference in New Issue
Block a user