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 storeKey = global.head.storeKey
|
||||
global.head = global.head.next
|
||||
global.size--
|
||||
|
||||
let storedPacket = global.store[storeKey]
|
||||
global.store[storeKey] = null
|
||||
|
|
@ -63,7 +64,6 @@ export namespace Queue {
|
|||
if (storedPacket == null) {
|
||||
return null
|
||||
} else {
|
||||
global.size--
|
||||
return {
|
||||
value: storedPacket,
|
||||
weight: weight,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue