I'am trying to open multiple ports in a router using the module 
nat-upnp<https://github.com/indutny/node-nat-upnp>for Node.js, but my problem 
is that i cant process the error since the 
function is asynchronous.

My objective is to open x ports and if a error is caught it should divide 
the number of ports by 2, and try again until I stick with a max number of 
ports that can be opened.

At the moment, when i run it does everything ok but only gives the errors 
at the end, and because of that it never divide the original number by 2, 
also it gives this warning:

warning: possible EventEmitter memory leak detected. 11 listeners added. 
Use emitter.setMaxListeners() to increase limit.

I tried to setMaxListeners() but it didn't fix it

-- 
Job board: http://jobs.nodejs.org/
Moderation policy: 
https://gist.github.com/othiym23/9886289#file-moderation-policy-md
--- 
You received this message because you are subscribed to the Google Groups 
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/nodejs/01cca39b-ada5-49f0-b730-f3799281d110%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to