summaryrefslogtreecommitdiff
path: root/cpp/demo/IceStorm/replicated2/Subscriber.cpp
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 /cpp/demo/IceStorm/replicated2/Subscriber.cpp
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 'cpp/demo/IceStorm/replicated2/Subscriber.cpp')
-rw-r--r--cpp/demo/IceStorm/replicated2/Subscriber.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/cpp/demo/IceStorm/replicated2/Subscriber.cpp b/cpp/demo/IceStorm/replicated2/Subscriber.cpp
index 2baaf336001..fe40c537780 100644
--- a/cpp/demo/IceStorm/replicated2/Subscriber.cpp
+++ b/cpp/demo/IceStorm/replicated2/Subscriber.cpp
@@ -194,6 +194,11 @@ Subscriber::run(int argc, char* argv[])
ClockPtr clock = new ClockI;
Ice::ObjectPrx subscriber = adapter->add(clock, subId);
+ //
+ // Activate the object adapter before subscribing.
+ //
+ adapter->activate();
+
IceStorm::QoS qos;
if(!retryCount.empty())
{
@@ -248,7 +253,6 @@ Subscriber::run(int argc, char* argv[])
}
cout << "reactivating persistent subscriber" << endl;
}
- adapter->activate();
shutdownOnInterrupt();
communicator()->waitForShutdown();