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

Fix disappearance of players in the team list #2867

Merged
merged 5 commits into from
Jan 1, 2023
Merged

Conversation

Marc-Spector
Copy link
Collaborator

Closes #2678

It happens when the player leaves #aeolus channel

@Marc-Spector
Copy link
Collaborator Author

I see no reason to remove players from the map. It won't get any worse.

@Marc-Spector
Copy link
Collaborator Author

damn it...

@Marc-Spector Marc-Spector marked this pull request as draft December 5, 2022 23:06
@codecov
Copy link

codecov bot commented Dec 5, 2022

Codecov Report

Merging #2867 (ae62d85) into develop (46507ac) will increase coverage by 0.00%.
The diff coverage is 92.30%.

❗ Current head ae62d85 differs from pull request most recent head 96cd9fd. Consider uploading reports for the commit 96cd9fd to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##             develop    #2867   +/-   ##
==========================================
  Coverage      65.43%   65.44%           
+ Complexity      5095     5094    -1     
==========================================
  Files            553      553           
  Lines          20794    20793    -1     
  Branches        1167     1166    -1     
==========================================
+ Hits           13606    13607    +1     
+ Misses          6505     6503    -2     
  Partials         683      683           
Impacted Files Coverage Δ
...faforever/client/player/FriendOfflineNotifier.java 21.42% <0.00%> (ø)
...a/com/faforever/client/chat/KittehChatService.java 71.17% <100.00%> (-0.11%) ⬇️
...om/faforever/client/player/PlayerOfflineEvent.java 100.00% <100.00%> (+50.00%) ⬆️
...ava/com/faforever/client/player/PlayerService.java 67.52% <100.00%> (+0.68%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 46507ac...96cd9fd. Read the comment docs.

@Sheikah45
Copy link
Member

Wouldn't this potentially lead to a memory leak as players are only added and never removed from the map?

@Marc-Spector
Copy link
Collaborator Author

Marc-Spector commented Dec 9, 2022

It's possible. I need to find another solution. My change is not suitable as it breaks a notification that a friend has logged into the client.

@Marc-Spector Marc-Spector marked this pull request as ready for review December 10, 2022 22:43
@Sheikah45 Sheikah45 merged commit 0082593 into develop Jan 1, 2023
@Sheikah45 Sheikah45 deleted the bugfix/teamlist branch January 1, 2023 23:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

A random player disappears from the team list
3 participants