Skip to content

Commit 1db4dcb

Browse files
committed
Merge remote-tracking branch 'origin/develop'
2 parents 7230a44 + 1d701f5 commit 1db4dcb

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

runtime/util/search.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,11 @@ std::unordered_set<block *, hash_block, k_eq> take_search_steps(
7272
while (!states.empty() && depth != 0) {
7373
state = states.front();
7474
states.pop_front();
75-
states_set.erase(state);
75+
if (states.empty()) {
76+
states_set.clear();
77+
} else {
78+
states_set.erase(state);
79+
}
7680

7781
if (depth > 0) {
7882
depth--;

0 commit comments

Comments
 (0)