From 4dcc8bffe1e63a00f68aca9497c885b2bfbdacac Mon Sep 17 00:00:00 2001 From: Michael Davidsaver Date: Tue, 28 Nov 2017 17:32:45 -0600 Subject: [PATCH] minor --- src/client/clientMonitor.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/client/clientMonitor.cpp b/src/client/clientMonitor.cpp index c5dd04d..2a7c321 100644 --- a/src/client/clientMonitor.cpp +++ b/src/client/clientMonitor.cpp @@ -126,6 +126,9 @@ struct Monitor::Impl : public pva::MonitorRequester, pvd::Status sts(operation->start()); if(sts.isSuccess()) { started = true; + /* storing raw pointer to operation, which is expected + * to outlive our 'op'. + */ last.attach(operation); } else { event.message = sts.getMessage();