浏览代码

Merge branch 'master' of ssh://git.sip-router.org/sip-router

* 'master' of ssh://git.sip-router.org/sip-router:
  modules/mediaproxy: restrict opening of dispatcher connection
Peter Dunkley 12 年之前
父节点
当前提交
4509d6ce41
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      modules/mediaproxy/mediaproxy.c

+ 1 - 1
modules/mediaproxy/mediaproxy.c

@@ -2113,7 +2113,7 @@ static int
 child_init(int rank)
 {
     // initialize the connection to mediaproxy if needed
-    if (!mediaproxy_disabled)
+    if (!mediaproxy_disabled && rank > PROC_MAIN)
         mediaproxy_connect();
 
     return 0;