mirror of
https://github.com/Qv2ray/Qv2ray.git
synced 2025-05-21 19:30:26 +08:00
fix: some fixes when updating the subscription with same protocol/host/port pair but different name
This commit is contained in:
parent
9966db6e79
commit
ca3ab58b72
@ -522,6 +522,7 @@ namespace Qv2ray::core::handlers
|
|||||||
UpdateConnection(_conn, config);
|
UpdateConnection(_conn, config);
|
||||||
// Remove Connection Id from the list.
|
// Remove Connection Id from the list.
|
||||||
connectionsOrig.removeAll(_conn);
|
connectionsOrig.removeAll(_conn);
|
||||||
|
typeMap.remove(typeMap.key(_conn));
|
||||||
}
|
}
|
||||||
else if (canGetOutboundData && typeMap.contains(outboundData))
|
else if (canGetOutboundData && typeMap.contains(outboundData))
|
||||||
{
|
{
|
||||||
@ -533,6 +534,7 @@ namespace Qv2ray::core::handlers
|
|||||||
RenameConnection(_conn, _alias);
|
RenameConnection(_conn, _alias);
|
||||||
// Remove Connection Id from the list.
|
// Remove Connection Id from the list.
|
||||||
connectionsOrig.removeAll(_conn);
|
connectionsOrig.removeAll(_conn);
|
||||||
|
nameMap.remove(nameMap.key(_conn));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user