TUN-6708: Fix replace flow logic

This commit is contained in:
cthuang 2022-08-26 17:52:06 +01:00
parent e131125558
commit efb99d90d7
1 changed files with 1 additions and 1 deletions

View File

@ -64,7 +64,7 @@ func (sft *FlowTracker) Register(id FlowID, flow *Flow, shouldReplace bool) (rep
return false
}
if shouldReplace && isSameFlow(currentFlow, flow) {
if shouldReplace && !isSameFlow(currentFlow, flow) {
sft.flows[id] = flow
return true
}