More PeriodicTimer's instead of System.Threading.Timers

This commit is contained in:
Kwoth
2022-02-02 06:28:33 +01:00
parent b4a493971a
commit 41653a317b
10 changed files with 124 additions and 110 deletions

View File

@@ -36,7 +36,7 @@ public class UserPunishService : INService, IReadyExecutor
if (_client.ShardId != 0)
return;
var expiryTimer = new PeriodicTimer(TimeSpan.FromHours(12));
using var expiryTimer = new PeriodicTimer(TimeSpan.FromHours(12));
do
{
try