diff options
author | Dwayne Boone <dwayne@zeroc.com> | 2007-03-06 14:19:17 +0000 |
---|---|---|
committer | Dwayne Boone <dwayne@zeroc.com> | 2007-03-06 14:19:17 +0000 |
commit | bb485367b90219b73d9c5d07abee15f0b4a7bf9d (patch) | |
tree | 212534362858450d834aa1eec71d1c8130074f1a /py/demo/Ice/async/Server.py | |
parent | fixed typo in README (diff) | |
download | ice-bb485367b90219b73d9c5d07abee15f0b4a7bf9d.tar.bz2 ice-bb485367b90219b73d9c5d07abee15f0b4a7bf9d.tar.xz ice-bb485367b90219b73d9c5d07abee15f0b4a7bf9d.zip |
Bug 1970
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")) |