Skip to content
This repository has been archived by the owner on Mar 24, 2018. It is now read-only.

when goes back, it gives error if its still executing #32

Open
uzman opened this issue May 23, 2012 · 1 comment
Open

when goes back, it gives error if its still executing #32

uzman opened this issue May 23, 2012 · 1 comment

Comments

@uzman
Copy link

uzman commented May 23, 2012

hi, i have another problem.

i open my linkedin profile from a viewcontroller (there is uinavigationcontrol).

if linkedin method (profileForCurrentUser) is still executing, and i tap to Back button, it crashes.
because view controller is dealloced and it is still trying to fetch data from linkedin.

how can i cancel/stop the linkedin method (profileForCurrentUser,profileForPersonWithID,updateStatus..or other methods)?

@uzman
Copy link
Author

uzman commented May 23, 2012

here is the method that crashes:

  • (void)parseConnectionResponse:(RDLinkedInHTTPURLConnection )connection {
    NSError
    error = nil;
    id results = nil;

    if( [RDLinkedInResponseParser parseXML:[connection data] connection:connection results:&results error:&error] ) {
    if( [rdDelegate respondsToSelector:@selector(linkedInEngine:requestSucceeded:withResults:)] ) {
    [rdDelegate linkedInEngine:self requestSucceeded:connection.identifier withResults:results];
    }
    }
    else {
    if( [rdDelegate respondsToSelector:@selector(linkedInEngine:requestFailed:withError:)] ) {
    [rdDelegate linkedInEngine:self requestFailed:connection.identifier withError:error];
    }
    }
    }

[rdDelegate respondsToSelector:@selector(linkedInEngine:requestSucceeded:withResults:)]

[LinkedInContactListViewController respondsToSelector:]: message sent to deallocated instance

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant