Commit 5236dd03 authored by Felix Paul Kühne's avatar Felix Paul Kühne

x-callback-url: fix infinite recursion on invalid URL schemes (closes #10)

parent 7808bd72
......@@ -187,9 +187,12 @@
[_currentDownloadFilename removeObjectAtIndex:0];
}
downloadWasStarted = YES;
} else
} else {
APLog(@"Unknown download scheme '%@'", downloadScheme);
[_currentDownloads removeObjectAtIndex:0];
_currentDownloadType = 0;
return;
}
if (downloadWasStarted) {
if (!_backgroundTaskIdentifier || _backgroundTaskIdentifier == UIBackgroundTaskInvalid) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment