Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check if bot online before checking for outstanding trades. Bugfix for #2871 #2887

Merged
merged 1 commit into from
Apr 23, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion ArchiSteamFarm/Steam/Bot.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3195,7 +3195,11 @@ private async void OnSharedLibraryLockStatus(ArchiHandler.SharedLibraryLockStatu
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);
Expand Down