malcommac / ImageSizeFetcher

Finds the type/size of an image given its URL by fetching as little data as needed
MIT License
441 stars 25 forks source link

URLSession cancel error #4

Open dimsky opened 6 years ago

dimsky commented 6 years ago

Request cancel will be invoke URLSession error delegate.

Error Domain=NSURLErrorDomain Code=-999 "cancelled" UserInfo={NSErrorFailingURLStringKey=

dcristolovean commented 5 years ago

Somehow related... the callback is called multiple times when an image error occurs and this plays havoc with my DispatchGroup, it will crash when leave() is called too many times.

zyvv commented 5 years ago

i got the same problem

kanagudurai commented 5 years ago

facing same issue