Pass successful connect return

This commit is contained in:
Muaz Ahmad 2023-08-15 14:27:54 +05:00
parent ae9bb63d04
commit 881cbe28f8

View file

@ -1,8 +1,5 @@
package rtmp package rtmp
import (
"fmt"
)
func NegotiateConnect(chnk_wrp_ptr *ChunkWrapper) (bool) { func NegotiateConnect(chnk_wrp_ptr *ChunkWrapper) (bool) {
if err := chnk_wrp_ptr.ReadPeerChunkSize(); err != nil { if err := chnk_wrp_ptr.ReadPeerChunkSize(); err != nil {
@ -23,6 +20,5 @@ func NegotiateConnect(chnk_wrp_ptr *ChunkWrapper) (bool) {
if err := chnk_wrp_ptr.WriteConnectResponse(); err != nil { if err := chnk_wrp_ptr.WriteConnectResponse(); err != nil {
return false return false
} }
fmt.Println(chnk_wrp_ptr.params) return true
return false
} }