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