Skip to content
Browse files

Fix bug in Mac sample: Clear requestDidFinishSelector when downloadin…

…g images, since we are reusing the queue

This is exactly why a shared queue can be dangerous... :)
  • Loading branch information...
1 parent 71e46a9 commit 4a8954fdbfcbb187d13a91478931f1debf901839 @pokeb committed
Showing with 1 addition and 0 deletions.
  1. +1 −0 Mac Sample/AppDelegate.m
View
1 Mac Sample/AppDelegate.m
@@ -100,6 +100,7 @@ - (IBAction)fetchThreeImages:(id)sender
[imageView3 setImage:nil];
[networkQueue cancelAllOperations];
+ [networkQueue setRequestDidFinishSelector:NULL];
[networkQueue setDownloadProgressDelegate:progressIndicator];
[networkQueue setDelegate:self];
[networkQueue setShowAccurateProgress:([showAccurateProgress state] == NSOnState)];

0 comments on commit 4a8954f

Please sign in to comment.
Something went wrong with that request. Please try again.