1
0
Fork 0
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:
Simo Kinnunen 2015-06-02 15:35:16 +09:00
parent d806d4fe54
commit 9130717e0e
2 changed files with 104 additions and 1 deletions

View file

@ -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()
}