diff options
| author | gcohen | 2015-01-06 00:57:47 -0800 |
|---|---|---|
| committer | gcohen | 2015-01-06 00:57:47 -0800 |
| commit | 28397a55476b955f33ce7568f6cc40d2e0a41821 (patch) | |
| tree | 9f69724e8645e83b820b4f674f96de2a0e2d1a3f /python/examples/futureHouse/futureHouse.py | |
| parent | acc875bb3f29df7a314a80a27e30c1f2348be0dd (diff) | |
| download | pubnub-python-28397a55476b955f33ce7568f6cc40d2e0a41821.tar.bz2 | |
thread test
Diffstat (limited to 'python/examples/futureHouse/futureHouse.py')
| -rw-r--r-- | python/examples/futureHouse/futureHouse.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/python/examples/futureHouse/futureHouse.py b/python/examples/futureHouse/futureHouse.py index c179347..a1ccd77 100644 --- a/python/examples/futureHouse/futureHouse.py +++ b/python/examples/futureHouse/futureHouse.py @@ -113,12 +113,12 @@ def reconnect(message): def disconnect(message): print("DISCONNECTED") -def pnSubscribe(x): +def pnSubscribe(): pubnub.subscribe(channel, callback=callback, error=callback, connect=connect, reconnect=reconnect, disconnect=disconnect) try: - thread.start_new_thread( pnSubscribe, (0,) ) + thread.start_new_thread( pnSubscribe, () ) except: print "Error: unable to start Subscribe thread" |
