simplified

This commit is contained in:
Jeff Hill
2002-12-20 02:21:01 +00:00
parent 09d516ff05
commit 48ebbb4ab4

View File

@@ -198,16 +198,13 @@ bool casChannelI::unistallMonitor ( ca_uint32_t clientIdIn )
tsDLIter <casMonitor> iter = this->monitorList.firstIter ();
while ( iter.valid () ) {
if ( clientIdIn == iter->getClientId () ) {
break;
this->monitorList.remove ( *iter.pointer() );
this->getClient().destroyMonitor ( *iter.pointer() );
return true;
}
iter++;
}
if ( ! iter.valid () ) {
return false;
}
this->monitorList.remove ( *iter.pointer() );
this->getClient().destroyMonitor ( *iter.pointer() );
return true;
return false;
}
//