summaryrefslogtreecommitdiff
path: root/TAO/tao/Wait_On_Leader_Follower.cpp
diff options
context:
space:
mode:
authorcoryan <coryan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2001-03-06 19:52:56 +0000
committercoryan <coryan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2001-03-06 19:52:56 +0000
commit029f6abc0823125cf8d01f02e40c81f6f20dc3d8 (patch)
treeabde1c06d9ba7ec574385929ecad8d79ba231d01 /TAO/tao/Wait_On_Leader_Follower.cpp
parent7a96c9be6a6427a279096f056004911bfd52cf4f (diff)
downloadATCD-029f6abc0823125cf8d01f02e40c81f6f20dc3d8.tar.gz
ChangeLogTag:Tue Mar 6 11:51:18 2001 Carlos O'Ryan <coryan@uci.edu>
Diffstat (limited to 'TAO/tao/Wait_On_Leader_Follower.cpp')
-rw-r--r--TAO/tao/Wait_On_Leader_Follower.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/TAO/tao/Wait_On_Leader_Follower.cpp b/TAO/tao/Wait_On_Leader_Follower.cpp
index 0188f32f49a..052ee6cfd08 100644
--- a/TAO/tao/Wait_On_Leader_Follower.cpp
+++ b/TAO/tao/Wait_On_Leader_Follower.cpp
@@ -214,16 +214,13 @@ TAO_Wait_On_Leader_Follower::wait (ACE_Time_Value *max_wait_time,
ACE_TEXT ("TAO (%P|%t) - wait (leader):to enter reactor event loop on <%x>\n"),
this->transport_));
- while (1)
+ // If we got our reply, no need to run the event loop any
+ // further.
+ while (!reply_received)
{
// Run the event loop.
result = reactor->handle_events (max_wait_time);
- // If we got our reply, no need to run the event loop any
- // further.
- if (reply_received)
- break;
-
// Did we timeout? If so, stop running the loop.
if (result == 0 &&
max_wait_time != 0 &&