Skip to content
This repository has been archived by the owner on Dec 23, 2020. It is now read-only.

Commit

Permalink
Don't request PICS updates if we're not connected to IRC. #22
Browse files Browse the repository at this point in the history
  • Loading branch information
voided committed Jul 14, 2018
1 parent 4bf5b39 commit ed1ec5e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions SteamIrcBot/Steam/Job Manager/Jobs/PICSJob.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,13 @@ protected override void OnRun()
if ( !Steam.Instance.Connected )
return;

if (!IRC.Instance.Connected)
{
// if we're not connected to IRC, no reason to keep requesting changes
// we'll resume once we're connected
return;
}

Steam.Instance.Apps.PICSGetChangesSince( lastChangeNumber, true, true );
}

Expand Down

0 comments on commit ed1ec5e

Please sign in to comment.