static void requestRunner()
{
requestThreadrun = true;
while (requestThreadrun)
{
try
{
string item = "";
lock (objlock)
{
if (queue.Count > 0)
{
item = queue[0];
}
}
if (item != "")
{
get3secfile(item);
lock (objlock)
{
queue.Remove(item);
}
}
}
catch (Exception ex)
{
log.Error(ex);
}
Thread.Sleep(1000);
}
}