Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

5
  • console.log(result); returns {} but srv outputs what it should Commented Apr 11, 2014 at 9:11
  • You're sure that srv is not null in the callback? What if you log it? Commented Apr 11, 2014 at 9:15
  • I have console.log(srv); right after memo[item.ip+':'+item.port] = srv; Commented Apr 11, 2014 at 9:32
  • Sure! Sorry, I'll fix it: the callback was returning before the queryDedicated was performed - I guess it is an async call! Commented Apr 11, 2014 at 9:42
  • Of course there is a solution without it, but I thought you were using it in your code - the async var in you code. Give me a sec to post the alternative. Commented Apr 11, 2014 at 9:49