Skip to content

Commit

Permalink
Fixes SDLProtocolMessageAssember completionHandler from being called …
Browse files Browse the repository at this point in the history
…twice

Fixes #92
  • Loading branch information
Joel Fischer committed Mar 25, 2015
1 parent e9af8e6 commit 9be8b73
Showing 1 changed file with 5 additions and 6 deletions.
Expand Up @@ -83,13 +83,12 @@ - (void)handleMessage:(SDLProtocolMessage *)message withCompletionHandler:(SDLMe
// Done with this data, release it.
self.parts = nil;

} else {
// Not done, let caller know
if (completionHandler != nil) {
completionHandler(NO, nil);
}
}

// Not done, let caller know
if (completionHandler != nil) {
completionHandler(NO, nil);
}

}

@end

0 comments on commit 9be8b73

Please sign in to comment.