diff --git a/api/source/mk_common.cpp b/api/source/mk_common.cpp index 19849621..15eff659 100755 --- a/api/source/mk_common.cpp +++ b/api/source/mk_common.cpp @@ -70,8 +70,10 @@ API_EXPORT void API_CALL mk_stop_all_server(){ CLEAR_ARR(rtsp_server); CLEAR_ARR(rtmp_server); CLEAR_ARR(http_server); +#ifdef ENABLE_RTPPROXY udpRtpServer = nullptr; tcpRtpServer = nullptr; +#endif stopAllTcpServer(); }