Skip to content

Fix session duplication and inflated playtime counting#9

Merged
twisti-dev merged 3 commits into
version/26.1from
copilot/fix-buggy-session-counts
Apr 16, 2026
Merged

Fix session duplication and inflated playtime counting#9
twisti-dev merged 3 commits into
version/26.1from
copilot/fix-buggy-session-counts

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 10, 2026

  • Fix 1: Remove cacheSession() from saveSession() in PlaytimeServiceImpl
  • Fix 2: Fix PlayerQuitListener to handle ALL sessions for a player
  • Fix 3: Fix AFK handler (PlayerAfkListener) to handle ALL sessions for a player
  • Fix 4: Fix getPlaytimeByServer() and getPlaytimeByCategory() deduplication
  • Bump version to 1.2.1-SNAPSHOT

Copilot AI and others added 2 commits April 10, 2026 13:01
- Remove cacheSession() call from saveSession() to prevent zombie sessions
  that re-enter the cache after AFK/quit removal
- Fix PlayerQuitListener to save and remove ALL sessions for a player
- Fix PlayerAfkListener to handle ALL sessions when going AFK
- Fix getPlaytimeByServer/getPlaytimeByCategory to deduplicate active
  sessions from DB results (flushed sessions were being counted twice)

Agent-Logs-Url: https://github.com/SLNE-Development/surf-playtime/sessions/1031960a-c3e3-4e62-9082-79091c5c7214

Co-authored-by: TheBjoRedCraft <143264463+TheBjoRedCraft@users.noreply.github.com>
Copy link
Copy Markdown
Contributor

@twisti-dev twisti-dev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Version hochstellen

@twisti-dev
Copy link
Copy Markdown
Contributor

@copilot bump version

Agent-Logs-Url: https://github.com/SLNE-Development/surf-playtime/sessions/82a9e66c-38ad-485e-9ea1-da1ed8188e7f

Co-authored-by: twisti-dev <76837088+twisti-dev@users.noreply.github.com>
auto-merge was automatically disabled April 16, 2026 09:24

Head branch was pushed to by a user without write access

Copy link
Copy Markdown
Contributor Author

Copilot AI commented Apr 16, 2026

@copilot bump version

Bumped version to 1.2.1-SNAPSHOT in 1b5864b.

Copilot AI requested a review from twisti-dev April 16, 2026 09:26
@twisti-dev twisti-dev merged commit c857912 into version/26.1 Apr 16, 2026
@twisti-dev twisti-dev deleted the copilot/fix-buggy-session-counts branch April 16, 2026 09:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants