Closed Bug 938167 Opened 12 years ago Closed 12 years ago

[NetworkStats API] Error when multiple queries to getSamples are received

Categories

(Firefox OS Graveyard :: General, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: albert, Assigned: albert)

References

Details

Attachments

(1 file)

When costcontrol launch more than one query to getsamples at the same time, networkstats launch the following error: E/GeckoConsole( 530): [JavaScript Error: "item is undefined" {file: "resource://gre/modules/NetworkStatsService.jsm" line: 388}]
Blocks: 858003
There is a problem when queries are inserted into updateQueue to avoid processing multiple times the same thing. Now, if there is a request similar than the incoming one, the callback is inserted and the processQueue function is called, what is wrong. The correct flow should be insert the callback and return, because the query is being processed.
Attached patch PatchSplinter Review
Attachment #831582 - Flags: review?(gene.lian)
Assignee: nobody → acperez
Comment on attachment 831582 [details] [diff] [review] Patch Thank you!
Attachment #831582 - Flags: review?(gene.lian) → review+
Keywords: checkin-needed
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: