Skip to content

Commit

Permalink
Fix #204 Remove LCU listener for game end state, use process only
Browse files Browse the repository at this point in the history
  • Loading branch information
floh22 committed Nov 19, 2022
1 parent 9417d88 commit e8b4920
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions LeagueBroadcast/Common/Controllers/AppStateController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -153,10 +153,13 @@ private void ClientStateChanged(object sender, LeagueEvent e)
string eventType = e.Data.ToString();
Log.Info($"League State: {eventType}");

/* Detect game end via process close instead of the client if the LCU is going to be buggy -.-
if (!eventType.Equals("InProgress") && BroadcastController.CurrentLeagueState.HasFlag(LeagueState.InProgress))
{
GameStop?.Invoke(this, EventArgs.Empty);
}
*/
if (!eventType.Equals("ChampSelect") && BroadcastController.CurrentLeagueState.HasFlag(LeagueState.ChampSelect))
{
ChampSelectStop?.Invoke(this, EventArgs.Empty);
Expand Down
4 changes: 2 additions & 2 deletions LeagueBroadcast/LeagueBroadcast.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
<RepositoryUrl>https://github.com/floh22/LeagueBroadcast</RepositoryUrl>
<RepositoryType>Git</RepositoryType>
<PackageIcon>BE_icon.png</PackageIcon>
<AssemblyVersion>1.5.25.0</AssemblyVersion>
<FileVersion>1.5.25.0</FileVersion>
<AssemblyVersion>1.5.37.0</AssemblyVersion>
<FileVersion>1.5.37.0</FileVersion>
<RunPostBuildEvent>OnBuildSuccess</RunPostBuildEvent>
</PropertyGroup>

Expand Down

0 comments on commit e8b4920

Please sign in to comment.