Skip to content

Commit

Permalink
make NSOperationqueue serial
Browse files Browse the repository at this point in the history
  • Loading branch information
azarovalex committed Jan 22, 2024
1 parent 95a5456 commit a432412
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Sources/MapboxNavigation/ImageDownloader.swift
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ class ImageDownloader: NSObject, ReentrantImageDownloader, URLSessionDataDelegat

self.downloadQueue = OperationQueue()
self.downloadQueue.name = Bundle.mapboxNavigation.bundleIdentifier! + ".ImageDownloader"
self.downloadQueue.maxConcurrentOperationCount = 1
self.accessQueue = DispatchQueue(label: Bundle.mapboxNavigation.bundleIdentifier! + ".ImageDownloaderInternal")

let urlSessionDelegateProxy = URLSessionDelegateProxy()
Expand Down

0 comments on commit a432412

Please sign in to comment.