Skip to content

Commit 8763aaa

Browse files
committed
Fixed bug in LockFreeLinkedSet.
1 parent 916c342 commit 8763aaa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/concurrent/edge/lock_free_linked_set.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ def remove(item)
112112
removed = curr.successor_reference.compare_and_set succ, succ, false, true
113113

114114
#next_node unless removed
115-
continue unless removed
115+
next unless removed
116116

117117
pred.successor_reference.compare_and_set curr, succ, false, false
118118

0 commit comments

Comments
 (0)