Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

failedHandler in downloadTask is called twice #43

Open
xnz23 opened this issue Feb 9, 2017 · 0 comments
Open

failedHandler in downloadTask is called twice #43

xnz23 opened this issue Feb 9, 2017 · 0 comments
Labels

Comments

@xnz23
Copy link

xnz23 commented Feb 9, 2017

if downloadTask runs in an error it calls its failedHandler twice.

here is why:
TOSMBSessionDownloadTask

  • (void)didFailWithError:(NSError *)error
    calls failHandler.error in super didFailWithError
    and (some lines later) it calls failHandler.error

in my opinion it should call failHandler.error only once.

Hardware / Software

Which version of the library were you using?
version 2.1
Which version of iOS are you running?
version 9.3.5 (13G36)
What model of iOS device were you testing on?
MD531E/A
If using CocoaPods, which version of CocoaPods are you on?
no cocoaPods

good luck
jens

@TimOliver TimOliver added the bug label Feb 10, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants