summaryrefslogtreecommitdiff
path: root/plugins/ProxySwitch/src/ip.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/ProxySwitch/src/ip.cpp')
-rw-r--r--plugins/ProxySwitch/src/ip.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/ProxySwitch/src/ip.cpp b/plugins/ProxySwitch/src/ip.cpp
index e36f4ae444..1962ca7382 100644
--- a/plugins/ProxySwitch/src/ip.cpp
+++ b/plugins/ProxySwitch/src/ip.cpp
@@ -647,7 +647,7 @@ void UnboundConnections(LONG *OldIP, LONG *NewIP)
mir_cslock lck(csConnection_List);
for (auto &it : g_arConnections.rev_iter())
if (it->IP == (ULONG)*OldIP)
- g_arConnections.remove(g_arConnections.indexOf(&it));
+ g_arConnections.removeItem(&it);
}
OldIP++;
}