Skip to content

Commit

Permalink
fixes #28 - callback returns None
Browse files Browse the repository at this point in the history
  • Loading branch information
Samuel Sutch committed Jan 25, 2013
1 parent 855073b commit a0757f1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pyapns/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,7 @@ def cancel_timeout(r):
def got_protocol(p):
p.onFailureReceived = self.on_failure_received
p.sendMessage(notifications)
return p

d.addCallback(got_protocol)
d.addErrback(log_errback('apns-service-write'))
Expand Down

0 comments on commit a0757f1

Please sign in to comment.