pvAccess client Monitor::start() duplicate call

This commit is contained in:
Matej Sekoranja
2014-12-09 13:59:32 +01:00
parent 63dda201a9
commit 2f56db0dff

View File

@@ -2452,11 +2452,13 @@ namespace epics {
);
m_monitorStrategy->init(structure);
bool restoreStartedState = m_started;
// notify
Monitor::shared_pointer thisChannelMonitor = dynamic_pointer_cast<Monitor>(shared_from_this());
EXCEPTION_GUARD(m_monitorRequester->monitorConnect(status, thisChannelMonitor, structure));
if (m_started)
if (restoreStartedState)
start();
}