diff options
Diffstat (limited to 'cpp/demo/Ice/callback/CallbackI.cpp')
-rw-r--r-- | cpp/demo/Ice/callback/CallbackI.cpp | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/cpp/demo/Ice/callback/CallbackI.cpp b/cpp/demo/Ice/callback/CallbackI.cpp index c385087532f..935eee32c50 100644 --- a/cpp/demo/Ice/callback/CallbackI.cpp +++ b/cpp/demo/Ice/callback/CallbackI.cpp @@ -24,11 +24,6 @@ CallbackReceiverI::callback(const Current&) cout << "received callback" << endl; } -CallbackI::CallbackI(const Ice::CommunicatorPtr& communicator) : - _communicator(communicator) -{ -} - void CallbackI::initiateCallback(const CallbackReceiverPrx& proxy, const Current& current) { @@ -37,8 +32,8 @@ CallbackI::initiateCallback(const CallbackReceiverPrx& proxy, const Current& cur } void -CallbackI::shutdown(const Ice::Current&) +CallbackI::shutdown(const Ice::Current& c) { cout << "Shutting down..." << endl; - _communicator->shutdown(); + c.adapter->getCommunicator()->shutdown(); } |