summaryrefslogtreecommitdiff
path: root/plugins/vfs_curl
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/vfs_curl')
-rw-r--r--plugins/vfs_curl/vfs_curl.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/vfs_curl/vfs_curl.c b/plugins/vfs_curl/vfs_curl.c
index f9534299..b195d2b0 100644
--- a/plugins/vfs_curl/vfs_curl.c
+++ b/plugins/vfs_curl/vfs_curl.c
@@ -122,7 +122,8 @@ http_curl_write_wrapper (HTTP_FILE *fp, void *ptr, size_t size) {
deadbeef->mutex_unlock (fp->mutex);
return 0;
}
- if (fp->status == STATUS_ABORTED) {
+ if (http_need_abort ((DB_FILE*)fp)) {
+ fp->status = STATUS_ABORTED;
trace ("vfs_curl STATUS_ABORTED in the middle of packet\n");
deadbeef->mutex_unlock (fp->mutex);
break;