summaryrefslogtreecommitdiff
path: root/py
diff options
context:
space:
mode:
authorMark Spruiell <mes@zeroc.com>2013-06-26 16:00:21 -0700
committerMark Spruiell <mes@zeroc.com>2013-06-26 16:00:21 -0700
commitc9db510fe8e0121747fa81efc01fd329819c50d5 (patch)
treec74219897f62b8a95e4d3f6f13d078e83249de3b /py
parentICE-5366 icexmld.dll for 64bit wrong (diff)
downloadice-c9db510fe8e0121747fa81efc01fd329819c50d5.tar.bz2
ice-c9db510fe8e0121747fa81efc01fd329819c50d5.tar.xz
ice-c9db510fe8e0121747fa81efc01fd329819c50d5.zip
ICE-5320 - fix IceStorm demos
Diffstat (limited to 'py')
-rwxr-xr-xpy/demo/IceStorm/clock/Subscriber.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/py/demo/IceStorm/clock/Subscriber.py b/py/demo/IceStorm/clock/Subscriber.py
index 6804abc074e..5e56cc6c09f 100755
--- a/py/demo/IceStorm/clock/Subscriber.py
+++ b/py/demo/IceStorm/clock/Subscriber.py
@@ -107,6 +107,11 @@ class Subscriber(Ice.Application):
subId.name = Ice.generateUUID()
subscriber = adapter.add(ClockI(), subId)
+ #
+ # Activate the object adapter before subscribing.
+ #
+ adapter.activate()
+
qos = {}
if len(retryCount) > 0:
qos["retryCount"] = retryCount
@@ -139,8 +144,6 @@ class Subscriber(Ice.Application):
raise
print("reactivating persistent subscriber")
- adapter.activate()
-
self.shutdownOnInterrupt()
self.communicator().waitForShutdown()