mirror of
https://github.com/openstf/stf
synced 2025-10-05 19:42:01 +02:00
The doubly linked list implementation was revealed to be buggy by simple unit tests. Fixed.
This commit is contained in:
parent
d806d4fe54
commit
9130717e0e
2 changed files with 104 additions and 1 deletions
|
@ -28,7 +28,10 @@ TtlSet.prototype.bump = function(value, time) {
|
|||
|
||||
this.tail = item
|
||||
|
||||
if (!this.head) {
|
||||
if (item.prev) {
|
||||
item.prev.next = item
|
||||
}
|
||||
else {
|
||||
this.head = item
|
||||
this._scheduleCheck()
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue