diff options
Diffstat (limited to 'python-twisted/examples/publish-example.py')
| -rw-r--r-- | python-twisted/examples/publish-example.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/python-twisted/examples/publish-example.py b/python-twisted/examples/publish-example.py index 9c3be60..d09ad8d 100644 --- a/python-twisted/examples/publish-example.py +++ b/python-twisted/examples/publish-example.py @@ -48,11 +48,14 @@ pubnub.publish({ 'callback' : publish_complete }) +def done_cb(info): + publish_complete(info) + reactor.stop() ## Publish Dictionary Object pubnub.publish({ 'channel' : crazy, 'message' : { 'some_key' : 'some_val' }, - 'callback' : publish_complete + 'callback' : done_cb }) ## ----------------------------------------------------------------------- |
