mirror of
https://github.com/JustArchiNET/ArchiSteamFarm
synced 2024-11-10 15:14:41 +00:00
check if bot online before checking for outstanding trades (#2887)
This commit is contained in:
parent
a44e9ab34b
commit
7721106fc7
1 changed files with 5 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue