aboutsummaryrefslogtreecommitdiffstats
path: root/python/examples/futureHouse
diff options
context:
space:
mode:
authorgcohen2015-01-06 00:57:47 -0800
committergcohen2015-01-06 00:57:47 -0800
commit28397a55476b955f33ce7568f6cc40d2e0a41821 (patch)
tree9f69724e8645e83b820b4f674f96de2a0e2d1a3f /python/examples/futureHouse
parentacc875bb3f29df7a314a80a27e30c1f2348be0dd (diff)
downloadpubnub-python-28397a55476b955f33ce7568f6cc40d2e0a41821.tar.bz2
thread test
Diffstat (limited to 'python/examples/futureHouse')
-rw-r--r--python/examples/futureHouse/futureHouse.py4
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"