Skip to content

Commit

Permalink
fix: add force dispose
Browse files Browse the repository at this point in the history
  • Loading branch information
litolax committed Jan 28, 2024
1 parent ddf487c commit 2e3f4ee
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions StudentsTimetable/Services/ParseService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,10 @@ private async Task ParseDay()
_ = this._botService.SendAdminMessageAsync(new SendMessageArgs(0,
"Ошибка дневного расписания в группе: " + group));
}
finally
{
driver.Dispose();
}
}

var notificationUserHashSet = new HashSet<User>();
Expand Down Expand Up @@ -384,6 +388,8 @@ public async Task UpdateTimetableTick()
parseWeek = true;
LastWeekHtmlContent = content.Text;
}

driver.Dispose();
}

if (parseWeek)
Expand Down

0 comments on commit 2e3f4ee

Please sign in to comment.