diff options
-rw-r--r-- | TAO/ChangeLogs/ChangeLog-02a | 5 | ||||
-rw-r--r-- | TAO/tests/AMI_Timeouts/client.cpp | 4 |
2 files changed, 9 insertions, 0 deletions
diff --git a/TAO/ChangeLogs/ChangeLog-02a b/TAO/ChangeLogs/ChangeLog-02a index 403d315983b..939c495e65d 100644 --- a/TAO/ChangeLogs/ChangeLog-02a +++ b/TAO/ChangeLogs/ChangeLog-02a @@ -1,3 +1,8 @@ +Tue May 08 21:26:19 2001 Carlos O'Ryan <coryan@uci.edu> + + * tests/AMI_Timeouts/client.cpp (main): + Wait for all the threads to complete before destroying the ORB. + Tue May 8 13:28:36 2001 Carlos O'Ryan <coryan@cs.wustl.edu> * tao/Transport.cpp (send_message_i): diff --git a/TAO/tests/AMI_Timeouts/client.cpp b/TAO/tests/AMI_Timeouts/client.cpp index e7923b51f18..4bdbefc4816 100644 --- a/TAO/tests/AMI_Timeouts/client.cpp +++ b/TAO/tests/AMI_Timeouts/client.cpp @@ -138,6 +138,10 @@ main (int argc, char *argv[]) ACE_TRY_ENV); ACE_TRY_CHECK; + // Wait for all the threads to finish before destroying the + // ORB. + (void) client.thr_mgr ()->wait (); + orb->destroy (ACE_TRY_ENV); ACE_TRY_CHECK; |