diff --git a/Limelight/Network/AppAssetManager.m b/Limelight/Network/AppAssetManager.m index 9395f7c..1ce5077 100644 --- a/Limelight/Network/AppAssetManager.m +++ b/Limelight/Network/AppAssetManager.m @@ -19,11 +19,14 @@ NSMutableDictionary* _imageCache; } +static const int MAX_REQUEST_COUNT = 4; + - (id) initWithCallback:(id)callback { self = [super init]; _callback = callback; - _opQueue = [[NSOperationQueue alloc] init]; _imageCache = [[NSMutableDictionary alloc] init]; + _opQueue = [[NSOperationQueue alloc] init]; + [_opQueue setMaxConcurrentOperationCount:MAX_REQUEST_COUNT]; return self; }