client: avoid race during monitor shutdown

poll() vs. cancel()
This commit is contained in:
Michael Davidsaver
2018-07-09 15:19:39 -07:00
parent 3caea5991a
commit 512cc11923

View File

@@ -202,7 +202,7 @@ bool Monitor::poll()
if(!impl) return false;
Guard G(impl->mutex);
if(!impl->done && impl->last.next()) {
if(!impl->done && impl->op && impl->last.next()) {
const epics::pvData::PVStructurePtr& ptr = impl->last->pvStructurePtr;
changed = *impl->last->changedBitSet;
overrun = *impl->last->overrunBitSet;