Fix stop/restart

This commit is contained in:
2025-07-10 12:53:59 +07:00
parent 0c1184a22d
commit 14b3a3c39a
9 changed files with 164 additions and 271 deletions

View File

@@ -85,13 +85,12 @@ namespace Managing.Domain.Bots
{
Status = BotStatus.Down;
SaveBackup();
CancellationToken.Cancel();
// CancellationToken.Cancel();
}
public void Restart()
{
Status = BotStatus.Up;
SaveBackup();
StartupTime = DateTime.UtcNow; // Update the startup time when the bot is restarted
}