uridownloader: Reset cancelled state after fetching an URI

Otherwise it will never ever be able to fetch anything after an
error until the user resets it manually.
This commit is contained in:
Sebastian Dröge 2014-02-11 15:26:01 +01:00
parent 591598da48
commit 3726c00b95

View file

@ -478,9 +478,12 @@ quit:
"Failed to download '%s'", uri);
} else {
g_propagate_error (err, downloader->priv->err);
downloader->priv->err = NULL;
}
}
downloader->priv->cancelled = FALSE;
g_mutex_unlock (&downloader->priv->download_lock);
return download;
}