summaryrefslogtreecommitdiff
path: root/TAO/tao/LF_Event.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/tao/LF_Event.cpp')
-rw-r--r--TAO/tao/LF_Event.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/TAO/tao/LF_Event.cpp b/TAO/tao/LF_Event.cpp
index 3b03c0b59ad..f58a7860fe6 100644
--- a/TAO/tao/LF_Event.cpp
+++ b/TAO/tao/LF_Event.cpp
@@ -35,9 +35,13 @@ TAO_LF_Event::state_changed (int new_state)
ACE_GUARD (TAO_SYNCH_MUTEX, ace_mon, leader_follower.lock ());
- this->state_changed_i (new_state);
+ if (is_state_final ()== 0 &&
+ this->follower_ != 0)
+ {
+ this->state_changed_i (new_state);
- this->follower_->signal ();
+ this->follower_->signal ();
+ }
}
}