summaryrefslogtreecommitdiff
path: root/TAO/tao/Wait_On_Leader_Follower.cpp
diff options
context:
space:
mode:
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 &&