mirror of
https://gitlab.com/Kwoth/nadekobot.git
synced 2025-09-11 01:38:27 -04:00
More PeriodicTimer's instead of System.Threading.Timers
This commit is contained in:
@@ -52,7 +52,7 @@ public class PatreonRewardsService : INService, IReadyExecutor
|
||||
if (_client.ShardId != 0)
|
||||
return;
|
||||
|
||||
var t = new PeriodicTimer(Interval);
|
||||
using var t = new PeriodicTimer(Interval);
|
||||
do
|
||||
{
|
||||
try
|
||||
|
@@ -30,7 +30,7 @@ public class ConverterService : INService, IReadyExecutor
|
||||
if (_client.ShardId != 0)
|
||||
return;
|
||||
|
||||
var timer = new PeriodicTimer(_updateInterval);
|
||||
using var timer = new PeriodicTimer(_updateInterval);
|
||||
do
|
||||
{
|
||||
try
|
||||
|
Reference in New Issue
Block a user