You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Trying to download 2 objects at the same time, an out of range exception is thrown caused by this line : 208 :
self.downloadingArray[index] = downloadModel
file : MZDownloadManager.swift
look likes a race condition, since the object may be removed befor the code above is executed, which lead to that exception.
to fix this issue, I changed to previous line with the following :
if self.downloadingArray.contains(downloadModel), let objectIndex = self.downloadingArray.index(of: downloadModel) {
self.downloadingArray[objectIndex] = downloadModel
}
The text was updated successfully, but these errors were encountered:
Hello
Trying to download 2 objects at the same time, an out of range exception is thrown caused by this line : 208 :
self.downloadingArray[index] = downloadModel
file : MZDownloadManager.swift
look likes a race condition, since the object may be removed befor the code above is executed, which lead to that exception.
to fix this issue, I changed to previous line with the following :
The text was updated successfully, but these errors were encountered: