From 44187cdc2243c3c3334f0cfbddc1ddc97f11ae1f Mon Sep 17 00:00:00 2001 From: saxon Date: Fri, 10 Aug 2018 22:20:11 +0930 Subject: [PATCH] Using my C_RTMP_IsConnected - tested and working --- rtmp/rtmp.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rtmp/rtmp.go b/rtmp/rtmp.go index d2a2d124..f868b30c 100644 --- a/rtmp/rtmp.go +++ b/rtmp/rtmp.go @@ -419,8 +419,8 @@ func (s *session) Write(data []byte) (int, error) { return 0, Err(3) } - // if C_RTMP_IsConnected(s.rtmp) == 0 { - if C.RTMP_IsConnected(s.rtmp) == 0 { + if C_RTMP_IsConnected(s.rtmp) == 0 { + //if C.RTMP_IsConnected(s.rtmp) == 0 { return 0, Err(1) }