Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Removed a global callback, raised by mypark#17
  • Loading branch information
argon committed Jan 6, 2012
1 parent a847bef commit 3be6182
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/apn.js
Expand Up @@ -60,7 +60,7 @@ var Connection = function (optionArgs) {
if (!self.openingSocket) {
process.nextTick(function () {
self.socket = tls.connect(options['port'], options['gateway'], socketOptions,
callback = function () {
function () {
if (!self.socket.authorized) {
throw self.socket.authorizationError;
}
Expand Down

0 comments on commit 3be6182

Please sign in to comment.