fix: prevent crash on subscription update

This commit is contained in:
Qv2ray-dev 2020-05-15 17:03:10 +08:00
parent e8ab89c9c0
commit 4e2efe14dc
2 changed files with 3 additions and 4 deletions

View File

@ -1 +1 @@
5421
5422

View File

@ -570,11 +570,10 @@ namespace Qv2ray::core::handlers
// Check if anything left behind (not being updated or changed significantly)
LOG(MODULE_CORE_HANDLER, "Removed old connections not have been matched.")
for (auto conn : connectionsOrig)
for (const auto &conn : originalConnections)
{
LOG(MODULE_CORE_HANDLER, "Removing: " + conn.toString())
abort();
// DeleteConnection(conn);
RemoveConnectionFromGroup(conn, id);
}
// Update the time