* We want the search to complete first before we start listening to
* events when the control does NOT specify changes ONLY mode.
*/
if ( ! psearchControl.isChangesOnly() )
{
InternalSearchResponseDone done = doSimpleSearch( session, req );
// ok if normal search beforehand failed somehow quickly abandon psearch
if ( done.getLdapResult().getResultCode() != ResultCodeEnum.SUCCESS )
{
session.getIoSession().write( done );
return;
}
}