On 17/10/2018 17:29, Black Michael via wsjt-devel wrote:
Problem is likely related to the fact that redirect_count only gets
reset to zero if the file does not exist or forced_fetch==true
Should be reset on every attempt.
if(!QFileInfo::exists(csv_file_name)||forced_fetch)
{
current_url_.setUrl(url);
redirect_count_=0;
download(current_url_);
}
And the initial download call doesn't force it since the force
argument defaults to false.
lotw_users_.load(ui_->LotW_CSV_URL_line_edit->text());
de Mike W9MDB
Hi Mike,
I don't follow, the count is set to zero just before download() is
invoked, how is that not setting it to zero every time a download cycle
is attempted? It's right there in the code fragment you quoted.
73
Bill
G4WJS.
_______________________________________________
wsjt-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wsjt-devel