瀏覽代碼

... and here.

Adam Ierymenko 9 年之前
父節點
當前提交
d862d2868c
共有 1 個文件被更改,包括 4 次插入2 次删除
  1. 4 2
      osdep/PortMapper.cpp

+ 4 - 2
osdep/PortMapper.cpp

@@ -146,10 +146,12 @@ public:
 						surface.clear();
 						surface.push_back(publicAddress);
 						natPmpSuccess = true;
+						closenatpmp(&natpmp);
 						break;
+					} else {
+						closenatpmp(&natpmp);
+						// continue
 					}
-
-					closenatpmp(&natpmp);
 				}
 
 				if (!natPmpSuccess) {