argon/node-apn — pull request #221 by androa (2014-10-10 09:03:11+00:00)
Title: Prevent exit when connection attempt fails.

Check that the "error" event has any registered listeners before emitting it. This prevents the process from dying as that would be the default behaviour in node.