lock (CommonCode.SyncObject)
{
Guid taskId = Guid.Parse(project.TaskId);
var regex = new System.Text.RegularExpressions.Regex(@"(?<=<NumberOfTries>).*?(?=</NumberOfTries>)");
var match = regex.Match(ZennoPoster.GetTaskInfo(taskId));
var NumberOfTries = Convert.ToInt32(match.Value);
if(NumberOfTries > 0){
ZennoPoster.AddTries(taskId,-2);
ZennoPoster.AddTries(taskId,1);
}
}