diff options
Diffstat (limited to 'py/test/Ice/slicing/exceptions/Server.py')
-rwxr-xr-x | py/test/Ice/slicing/exceptions/Server.py | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/py/test/Ice/slicing/exceptions/Server.py b/py/test/Ice/slicing/exceptions/Server.py index 87a7e954c1b..f3dd291de9a 100755 --- a/py/test/Ice/slicing/exceptions/Server.py +++ b/py/test/Ice/slicing/exceptions/Server.py @@ -14,11 +14,8 @@ Ice.loadSlice('-I. --all ServerPrivate.ice') import Test class TestI(Test.TestIntf): - def __init__(self, adapter): - self._adapter = adapter - def shutdown(self, current=None): - self._adapter.getCommunicator().shutdown() + current.adapter.getCommunicator().shutdown() def baseAsBase(self, current=None): b = Test.Base() @@ -108,7 +105,7 @@ def run(args, communicator): properties.setProperty("Ice.Warn.Dispatch", "0") properties.setProperty("TestAdapter.Endpoints", "default -p 12010 -t 10000") adapter = communicator.createObjectAdapter("TestAdapter") - object = TestI(adapter) + object = TestI() adapter.add(object, communicator.stringToIdentity("Test")) adapter.activate() communicator.waitForShutdown() |