summaryrefslogtreecommitdiff
path: root/py/test/Ice/exceptions/ServerAMD.py
diff options
context:
space:
mode:
Diffstat (limited to 'py/test/Ice/exceptions/ServerAMD.py')
-rwxr-xr-xpy/test/Ice/exceptions/ServerAMD.py7
1 files changed, 2 insertions, 5 deletions
diff --git a/py/test/Ice/exceptions/ServerAMD.py b/py/test/Ice/exceptions/ServerAMD.py
index ca9ecd81761..bd446bd2e79 100755
--- a/py/test/Ice/exceptions/ServerAMD.py
+++ b/py/test/Ice/exceptions/ServerAMD.py
@@ -15,11 +15,8 @@ Ice.loadSlice('TestAMD.ice')
import Test
class ThrowerI(Test.Thrower):
- def __init__(self, adapter):
- self._adapter = adapter
-
def shutdown_async(self, cb, current=None):
- self._adapter.getCommunicator().shutdown()
+ current.adapter.getCommunicator().shutdown()
cb.ice_response()
def supportsUndeclaredExceptions_async(self, cb, current=None):
@@ -117,7 +114,7 @@ def run(args, communicator):
properties.setProperty("Ice.Warn.Dispatch", "0")
properties.setProperty("TestAdapter.Endpoints", "default -p 12010:udp")
adapter = communicator.createObjectAdapter("TestAdapter")
- object = ThrowerI(adapter)
+ object = ThrowerI()
adapter.add(object, communicator.stringToIdentity("thrower"))
adapter.activate()
communicator.waitForShutdown()