fix: Only flip implied_candidates_dirty when they've actually changed
This commit is contained in:
1 parent
e5c3ae1f9f
commit
c57b832305
1 file changed
+1
-1
@@ -95,13 +95,13 @@ bool FifoMatcherContext::add_security(
|
||||
sec_id,
|
||||
new FifoMergedSecurityMatcher(
|
||||
{sec_id, _me->ignore_ops_on_deleted_orders, _me->trace})));
|
||||
_me->implied_candidates_dirty = true;
|
||||
} else {
|
||||
// Not sure why, but [John]I've seen _me->symbols contain empty strings.
|
||||
// Overwrite the existing value to ensure a valid symbol.
|
||||
_me->symbols[sec_id] = symbol;
|
||||
return false;
|
||||
}
|
||||
_me->implied_candidates_dirty = true;
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user