Commit 969a1dc7 authored by kinarob's avatar kinarob

optimize request operation

parent c78fbae1
...@@ -26,7 +26,6 @@ ...@@ -26,7 +26,6 @@
- (void)start { - (void)start {
self.executing = YES; self.executing = YES;
dispatch_async(dispatch_get_global_queue(0, 0), ^{
[[TZImageManager manager] getPhotoWithAsset:self.asset completion:^(UIImage *photo, NSDictionary *info, BOOL isDegraded) { [[TZImageManager manager] getPhotoWithAsset:self.asset completion:^(UIImage *photo, NSDictionary *info, BOOL isDegraded) {
dispatch_async(dispatch_get_main_queue(), ^{ dispatch_async(dispatch_get_main_queue(), ^{
if (!isDegraded) { if (!isDegraded) {
...@@ -45,7 +44,6 @@ ...@@ -45,7 +44,6 @@
} }
}); });
} networkAccessAllowed:YES]; } networkAccessAllowed:YES];
});
} }
- (void)done { - (void)done {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment