mirror of
https://github.com/JustArchiNET/ArchiSteamFarm.git
synced 2026-01-01 06:00:46 +00:00
check if bot online before checking for outstanding trades (#2887)
This commit is contained in:
@@ -3195,7 +3195,11 @@ public sealed class Bot : IAsyncDisposable, IDisposable {
|
||||
await CheckOccupationStatus().ConfigureAwait(false);
|
||||
}
|
||||
|
||||
private void OnTradeCheckTimer(object? state = null) => Utilities.InBackground(Trading.OnNewTrade);
|
||||
private void OnTradeCheckTimer(object? state = null) {
|
||||
if (IsConnectedAndLoggedOn) {
|
||||
Utilities.InBackground(Trading.OnNewTrade);
|
||||
}
|
||||
}
|
||||
|
||||
private void OnUserNotifications(UserNotificationsCallback callback) {
|
||||
ArgumentNullException.ThrowIfNull(callback);
|
||||
|
||||
Reference in New Issue
Block a user