mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-26 02:35:25 +02:00
The doubly linked list implementation was revealed to be buggy by simple unit tests. Fixed.
This commit is contained in:
@@ -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()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user