Skip to content

BlufiClient.onDeviceScanList ignores the status code argument #24

Description

@brunck

onDeviceScanList is invoked on both success and failure and is provided an appropriate BluFiStatusCode as an argument but the method ignores it, and always invokes didReceiveDeviceScanResponse on the BlufiDelegate with a status of StatusSuccess.

- (void)onDeviceScanList:(NSMutableArray<BlufiScanResponse *> *)list status:(BlufiStatusCode)code {
    id delegate = _blufiDelegate;
    BlufiClient *client = self;
    if (delegate && [delegate respondsToSelector:@selector(blufi:didReceiveDeviceScanResponse:status:)]) {
        [_callbackQueue addOperationWithBlock:^{
            [delegate blufi:client didReceiveDeviceScanResponse:list status:StatusSuccess];
        }];
    }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions