Fix bug in Mac sample: Clear requestDidFinishSelector when downloading images, s…
…ince we are reusing the queue This is exactly why a shared queue can be dangerous... :)
Showing
1 changed file
with
1 additions
and
0 deletions
@@ -100,6 +100,7 @@ | @@ -100,6 +100,7 @@ | ||
100 | [imageView3 setImage:nil]; | 100 | [imageView3 setImage:nil]; |
101 | 101 | ||
102 | [networkQueue cancelAllOperations]; | 102 | [networkQueue cancelAllOperations]; |
103 | + [networkQueue setRequestDidFinishSelector:NULL]; | ||
103 | [networkQueue setDownloadProgressDelegate:progressIndicator]; | 104 | [networkQueue setDownloadProgressDelegate:progressIndicator]; |
104 | [networkQueue setDelegate:self]; | 105 | [networkQueue setDelegate:self]; |
105 | [networkQueue setShowAccurateProgress:([showAccurateProgress state] == NSOnState)]; | 106 | [networkQueue setShowAccurateProgress:([showAccurateProgress state] == NSOnState)]; |
-
Please register or login to post a comment