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(); }