Fix Build Error

This commit is contained in:
Virtuworks 2013-03-04 22:59:25 -05:00
parent 4c566dbca1
commit 1a1bb1d625

View file

@ -159,16 +159,17 @@ namespace WebsitePanel.EnterpriseServer
{
System.Threading.Thread.Sleep(1000);
}
counter++;
}
{
// skip execution if the current task is still running
scheduledTasks = TaskManager.GetScheduledTasks();
if (!scheduledTasks.ContainsKey(schedule.ScheduleInfo.ScheduleId))
{
// run the schedule in the separate thread
schedule.Run();
// skip execution if the current task is still running
scheduledTasks = TaskManager.GetScheduledTasks();
if (!scheduledTasks.ContainsKey(schedule.ScheduleInfo.ScheduleId))
{
// run the schedule in the separate thread
schedule.Run();
}
}
}
catch (Exception Ex)
@ -177,7 +178,7 @@ namespace WebsitePanel.EnterpriseServer
{
TaskManager.WriteError(string.Format("RunSchedule Error : {0}", Ex.Message));
}
catch(Exception)
catch (Exception)
{
}
}