Skip to content

Commit

Permalink
fix error message when match isnt started (#207)
Browse files Browse the repository at this point in the history
  • Loading branch information
snixtho authored Sep 22, 2023
1 parent 983aff0 commit b3754cd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Modules/MatchTrackerModule/Services/MatchTracker.cs
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,13 @@ public MatchTracker(ITrackerSettings settings, IPlayerManagerService players, IT

public async Task TrackScoresAsync(ScoresEventArgs scoreArgs)
{
await VerifyTracker();

if (!IsTracking)
{
return;
}

await VerifyTracker();

IMatchState state;

switch (scoreArgs.Section)
Expand Down Expand Up @@ -185,7 +185,7 @@ await _events.RaiseAsync(MatchTrackerEvent.StateTracked,
return _currentTimeline;
}

private async Task VerifyTracker()
private async Task VerifyTracker()
{
if (!_settings.AutomaticTracking && !IsTracking)
{
Expand Down

0 comments on commit b3754cd

Please sign in to comment.