Fix Build Error
This commit is contained in:
parent
4c566dbca1
commit
1a1bb1d625
1 changed files with 9 additions and 8 deletions
|
@ -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)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue