| | |
| | | } |
| | | catch (LdapException e) |
| | | { |
| | | op.promise.handleError(e); |
| | | op.promise.handleException(e); |
| | | } |
| | | } |
| | | } |
| | |
| | | OperationWithPromise op = operationsInProgress.remove(messageID); |
| | | if (op != null) |
| | | { |
| | | op.promise.handleError(newLdapException(ResultCode.CANCELLED)); |
| | | op.promise.handleException(newLdapException(ResultCode.CANCELLED)); |
| | | return op.operation.cancel(cancelRequest); |
| | | } |
| | | return new CancelResult(ResultCode.NO_SUCH_OPERATION, null); |
| | |
| | | { |
| | | try |
| | | { |
| | | op.promise.handleError(newLdapException(ResultCode.CANCELLED)); |
| | | op.promise.handleException(newLdapException(ResultCode.CANCELLED)); |
| | | op.operation.abort(cancelRequest); |
| | | |
| | | if (keepStats) |