diff options
Diffstat (limited to 'py/demo/Ice/async/Server.py')
-rwxr-xr-x | py/demo/Ice/async/Server.py | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/py/demo/Ice/async/Server.py b/py/demo/Ice/async/Server.py index 4e44d1447c6..b753a1f1959 100755 --- a/py/demo/Ice/async/Server.py +++ b/py/demo/Ice/async/Server.py @@ -82,8 +82,6 @@ class HelloI(Demo.Hello): def shutdown(self, current=None): self._workQueue.destroy() - self._workQueue.join() - current.adapter.getCommunicator().shutdown(); class Server(Ice.Application): @@ -98,16 +96,12 @@ class Server(Ice.Application): adapter.activate() self.communicator().waitForShutdown() + self._workQueue.join() return 0 def interruptCallback(self, sig): self._workQueue.destroy() - self._workQueue.join() - - try: - self._communicator.destroy() - except: - traceback.print_exc() + self._communicator.shutdown() app = Server() sys.exit(app.main(sys.argv, "config.server")) |