浏览代码

fixing wrong placement of cfg_update() (thanks to Ondrej Martinek)

Miklos Tirpak 17 年之前
父节点
当前提交
38c052a763
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      udp_server.c

+ 2 - 2
udp_server.c

@@ -505,6 +505,8 @@ int udp_rcv_loop()
 			continue;
 		}
 		
+		/* update the local config */
+		cfg_update();
 #ifdef USE_STUN
 			/* STUN support can be switched off even if it's compiled */
 			if (stun_allow_stun && (unsigned char)*buf == 0x00) {
@@ -514,8 +516,6 @@ int udp_rcv_loop()
 				}
 			} else
 #endif
-		/* update the local config */
-		cfg_update();
 		/* receive_msg must free buf too!*/
 		receive_msg(buf, len, &ri);