summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Schleifer <js@heap.zone>2019-09-08 01:33:13 +0200
committerJonathan Schleifer <js@heap.zone>2019-09-08 01:33:13 +0200
commitbba31c27eca5038c47ef9ebb6133543bfa34b764 (patch)
treed684ff33b533e0b6d9f76ef6ce0f049e0425530e
parent85479694c83b47bde31f935e4683e25485ad176a (diff)
ofhttp: Fix error code not always being set
-rw-r--r--utils/ofhttp/OFHTTP.m1
1 files changed, 1 insertions, 0 deletions
diff --git a/utils/ofhttp/OFHTTP.m b/utils/ofhttp/OFHTTP.m
index 9eecb755..dc4fe1d4 100644
--- a/utils/ofhttp/OFHTTP.m
+++ b/utils/ofhttp/OFHTTP.m
@@ -687,6 +687,7 @@ fileNameFromContentDisposition(OFString *contentDisposition)
} else
@throw e;
+ _errorCode = 1;
[self performSelector: @selector(downloadNextURL)
afterDelay: 0];
}