diff options
Diffstat (limited to 'cpp/demo/IceGrid/allocate/Client.cpp')
-rw-r--r-- | cpp/demo/IceGrid/allocate/Client.cpp | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/cpp/demo/IceGrid/allocate/Client.cpp b/cpp/demo/IceGrid/allocate/Client.cpp index d7ab8270ae7..5afe84517d0 100644 --- a/cpp/demo/IceGrid/allocate/Client.cpp +++ b/cpp/demo/IceGrid/allocate/Client.cpp @@ -65,8 +65,7 @@ HelloClient::run(int argc, char* argv[]) } IceGrid::SessionPrx session; - - while(true) + while(!session) { cout << "This demo accepts any user-id / password combination.\n"; @@ -114,10 +113,10 @@ HelloClient::run(int argc, char* argv[]) { hello = HelloPrx::checkedCast(session->allocateObjectByType("::Demo::Hello")); } - + menu(); - - char c; + + char c = 'x'; do { try @@ -165,7 +164,7 @@ HelloClient::run(int argc, char* argv[]) } session->destroy(); - + return status; } |