summaryrefslogtreecommitdiff
path: root/TAO/orbsvcs/orbsvcs/Notify/MonitorControl/MonitorManager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/orbsvcs/orbsvcs/Notify/MonitorControl/MonitorManager.cpp')
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/MonitorControl/MonitorManager.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/TAO/orbsvcs/orbsvcs/Notify/MonitorControl/MonitorManager.cpp b/TAO/orbsvcs/orbsvcs/Notify/MonitorControl/MonitorManager.cpp
index 5f349c82353..b9f4bd3d89e 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/MonitorControl/MonitorManager.cpp
+++ b/TAO/orbsvcs/orbsvcs/Notify/MonitorControl/MonitorManager.cpp
@@ -18,6 +18,7 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL
TAO_MonitorManager::TAO_MonitorManager (void)
: run_ (false)
+ , initialized_ (false)
{
}
@@ -85,6 +86,9 @@ TAO_MonitorManager::init (int argc, ACE_TCHAR* argv[])
// Force the ARGV_T to copy the elements added by the add() method
this->task_.argv_.argv ();
+
+ // Rember that Monitor has been configured
+ this->initialized_ = true;
return 0;
}
@@ -121,7 +125,7 @@ TAO_MonitorManager::run (void)
task_.argv_.argv (),
task_.mc_orb_name_.c_str ());
- if (!this->run_)
+ if (!this->run_ && this->initialized_)
{
this->run_ = true;
activate = true;