caProvider: Minor cleanup

This commit is contained in:
Andrew Johnson
2021-10-01 09:54:48 -05:00
parent 161eac3a38
commit 99432d6809
2 changed files with 4 additions and 3 deletions

View File

@@ -159,7 +159,7 @@ void CAChannel::disconnectChannel()
}
std::vector<CAChannelMonitorWPtr>::iterator it;
for (it = monitorlist.begin(); it!=monitorlist.end(); ++it) {
CAChannelMonitorPtr mon = (*it).lock();
CAChannelMonitorPtr mon = it->lock();
if (!mon) continue;
mon->stop();
}