From 2f56db0dff6926613b27a6ee934dda5fc78e97e4 Mon Sep 17 00:00:00 2001 From: Matej Sekoranja Date: Tue, 9 Dec 2014 13:59:32 +0100 Subject: [PATCH] pvAccess client Monitor::start() duplicate call --- src/remoteClient/clientContextImpl.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/remoteClient/clientContextImpl.cpp b/src/remoteClient/clientContextImpl.cpp index 7f99c6d..e10e23a 100644 --- a/src/remoteClient/clientContextImpl.cpp +++ b/src/remoteClient/clientContextImpl.cpp @@ -2452,11 +2452,13 @@ namespace epics { ); m_monitorStrategy->init(structure); + bool restoreStartedState = m_started; + // notify Monitor::shared_pointer thisChannelMonitor = dynamic_pointer_cast(shared_from_this()); EXCEPTION_GUARD(m_monitorRequester->monitorConnect(status, thisChannelMonitor, structure)); - if (m_started) + if (restoreStartedState) start(); }