try fixing queue size...
This commit is contained in:
parent
46ad618134
commit
dbeb0e73dd
1 changed files with 1 additions and 1 deletions
|
|
@ -56,6 +56,7 @@ export namespace Queue {
|
||||||
let weight = global.head.weight
|
let weight = global.head.weight
|
||||||
let storeKey = global.head.storeKey
|
let storeKey = global.head.storeKey
|
||||||
global.head = global.head.next
|
global.head = global.head.next
|
||||||
|
global.size--
|
||||||
|
|
||||||
let storedPacket = global.store[storeKey]
|
let storedPacket = global.store[storeKey]
|
||||||
global.store[storeKey] = null
|
global.store[storeKey] = null
|
||||||
|
|
@ -63,7 +64,6 @@ export namespace Queue {
|
||||||
if (storedPacket == null) {
|
if (storedPacket == null) {
|
||||||
return null
|
return null
|
||||||
} else {
|
} else {
|
||||||
global.size--
|
|
||||||
return {
|
return {
|
||||||
value: storedPacket,
|
value: storedPacket,
|
||||||
weight: weight,
|
weight: weight,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue