Hello,
I have a problem with the code below:
for line in fh11:lines() do while true do if downloadSongWorking == 0 then print(line) downloadSongWorking = 1 g\_downloadpathline = "http://www..." g\_new\_folder\_pathline = g\_new\_folder\_path g\_txtallline = row.id .. "/" .. line print("DOWNLine" .. g\_downloadpathline ) print("newfolderline" .. g\_new\_folder\_pathline ) print("g\_txtallline" .. g\_txtallline ) network.download( g\_downloadpathline, "GET", networkListener4, g\_txtallline, g\_new\_folder\_pathline) tryCount4 = tryCount4 + 1 print(tryCount4) break end end end
The code is working when the while true loop doesn’t exist. I want to put the while true loop there to make the network.download command to start and work one by one. The downloadSongWorking bit is being cleared in the network listener function. But when I check with the debugger, and I put a breakpoint in network listener function, I see that the program can’t arrive at the listener function never.
Does anybody have an idea about this?
Thanks.