diff options
author | Matthew Newhook <matthew@zeroc.com> | 2005-05-05 02:16:49 +0000 |
---|---|---|
committer | Matthew Newhook <matthew@zeroc.com> | 2005-05-05 02:16:49 +0000 |
commit | 7f06c7ad7e112b964e1fc45363cd12f1bcce273f (patch) | |
tree | e28e220ffa91d8f413d0a088ef257c5755168748 /py/demo/Ice/session/Client.py | |
parent | http://bugzilla.zeroc.com/bugzilla/show_bug.cgi?id=276. short circuit eval (diff) | |
download | ice-7f06c7ad7e112b964e1fc45363cd12f1bcce273f.tar.bz2 ice-7f06c7ad7e112b964e1fc45363cd12f1bcce273f.tar.xz ice-7f06c7ad7e112b964e1fc45363cd12f1bcce273f.zip |
http://bugzilla.zeroc.com/bugzilla/show_bug.cgi?id=276
Diffstat (limited to 'py/demo/Ice/session/Client.py')
-rw-r--r-- | py/demo/Ice/session/Client.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/py/demo/Ice/session/Client.py b/py/demo/Ice/session/Client.py index 2ef3ba46eec..fa7cca59d59 100644 --- a/py/demo/Ice/session/Client.py +++ b/py/demo/Ice/session/Client.py @@ -74,6 +74,7 @@ class SessionClient(Ice.Application): self.menu() destroy = True + shutdown = False while True: try: c = raw_input("==> ") @@ -89,7 +90,8 @@ class SessionClient(Ice.Application): elif c == 'c': hellos.append(session.createHello()) elif c == 's': - factory.shutdown() + destroy = False + shutdown = True break elif c == 'x': break @@ -115,6 +117,8 @@ class SessionClient(Ice.Application): if destroy: session.destroy() + if shutdown: + factory.shutdown() finally: # # The refresher thread must be terminated in the event of a @@ -131,7 +135,7 @@ class SessionClient(Ice.Application): usage: c: create a new per-client hello object 0-9: send a greeting to a hello object -s: shutdown server +s: shutdown the server and exit x: exit t: exit without destroying the session ?: help |