summaryrefslogtreecommitdiff
path: root/cpp/test/Ice/servantLocator/Server.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/test/Ice/servantLocator/Server.cpp')
-rw-r--r--cpp/test/Ice/servantLocator/Server.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/cpp/test/Ice/servantLocator/Server.cpp b/cpp/test/Ice/servantLocator/Server.cpp
index 3fd46e6af54..3aeec31ef5f 100644
--- a/cpp/test/Ice/servantLocator/Server.cpp
+++ b/cpp/test/Ice/servantLocator/Server.cpp
@@ -60,8 +60,10 @@ public:
}
else
{
- current.adapter->removeServantLocator("");
- current.adapter->removeServantLocator("category");
+ ServantLocatorPtr locator = current.adapter->removeServantLocator("");
+ locator->deactivate("");
+ locator = current.adapter->removeServantLocator("category");
+ locator->deactivate("category");
}
}
};