diff --git a/rtmp/rtmp.go b/rtmp/rtmp.go index 4db77ec0..93a2e813 100644 --- a/rtmp/rtmp.go +++ b/rtmp/rtmp.go @@ -1611,7 +1611,6 @@ func C_HandShake(r *C_RTMP, FP9HandShake int32) (ok bool) { return false } - //if C.ReadN(r, (*byte)(unsafe.Pointer(&typ)), 1) != 1 { if C_ReadN(r, (*byte)(unsafe.Pointer(&typ)), 1) != 1 { return false } @@ -1624,7 +1623,6 @@ func C_HandShake(r *C_RTMP, FP9HandShake int32) (ok bool) { clientbuf[0], typ) } if C_ReadN(r, (*byte)(unsafe.Pointer(&serversig[0])), RTMP_SIG_SIZE) != RTMP_SIG_SIZE { - //if C.ReadN(r, (*byte)(unsafe.Pointer(&serversig[0])), RTMP_SIG_SIZE) != RTMP_SIG_SIZE { return false } @@ -1638,7 +1636,6 @@ func C_HandShake(r *C_RTMP, FP9HandShake int32) (ok bool) { } if C_ReadN(r, (*byte)(unsafe.Pointer(&serversig[0])), RTMP_SIG_SIZE) != RTMP_SIG_SIZE { - //if C.ReadN(r, (*byte)(unsafe.Pointer(&serversig[0])), RTMP_SIG_SIZE) != RTMP_SIG_SIZE { return false }