summaryrefslogtreecommitdiff
path: root/cpp/src/Glacier2/ServerBlobject.cpp
diff options
context:
space:
mode:
authorMarc Laukien <marc@zeroc.com>2004-08-18 20:55:00 +0000
committerMarc Laukien <marc@zeroc.com>2004-08-18 20:55:00 +0000
commitc20434e841e5df160a9152ea74267db591f3fa7c (patch)
tree6ca80c22f7ed228523ee5696b725a37af91f973c /cpp/src/Glacier2/ServerBlobject.cpp
parentcryptpermissions (diff)
downloadice-c20434e841e5df160a9152ea74267db591f3fa7c.tar.bz2
ice-c20434e841e5df160a9152ea74267db591f3fa7c.tar.xz
ice-c20434e841e5df160a9152ea74267db591f3fa7c.zip
makefile fix
Diffstat (limited to 'cpp/src/Glacier2/ServerBlobject.cpp')
-rw-r--r--cpp/src/Glacier2/ServerBlobject.cpp11
1 files changed, 7 insertions, 4 deletions
diff --git a/cpp/src/Glacier2/ServerBlobject.cpp b/cpp/src/Glacier2/ServerBlobject.cpp
index 691920f5a4f..43144e8f75e 100644
--- a/cpp/src/Glacier2/ServerBlobject.cpp
+++ b/cpp/src/Glacier2/ServerBlobject.cpp
@@ -20,13 +20,15 @@ Glacier2::ServerBlobject::ServerBlobject(const CommunicatorPtr& communicator, co
{
}
+Glacier2::ServerBlobject::~ServerBlobject()
+{
+ assert(!_transport);
+}
+
void
Glacier2::ServerBlobject::destroy()
{
- //
- // No mutex protection necessary, destroy is only called after all
- // object adapters have shut down.
- //
+ assert(_transport); // Destroyed?
_transport = 0;
Blobject::destroy();
}
@@ -36,6 +38,7 @@ Glacier2::ServerBlobject::ice_invoke_async(const Ice::AMD_Object_ice_invokePtr&
const Current& current)
{
assert(_transport); // Destroyed?
+
ObjectPrx proxy = _transport->createProxy(current.id);
assert(proxy);