Skip to content

fix: infinite loop in server.cpp - #139

Merged
lev2p1 merged 1 commit into
masterfrom
fix/134-server-stats
Sep 4, 2026
Merged

fix: infinite loop in server.cpp#139
lev2p1 merged 1 commit into
masterfrom
fix/134-server-stats

Conversation

@NikSimDev

Copy link
Copy Markdown
Collaborator

Pull Request

Related Issues:

Type of Change:

  • Bug fix
  • New feature
  • Breaking change
  • Documentation
  • Performance
  • Refactoring
  • Tests

Description:
fix infinite loop in statistics threads in server.cpp

Implementation Details:

added new flag and field in server class:

std::thread stats_thread_;                   
std::atomic<bool> shutdown_flag_{ false };

Testing:
brazier_tests.exe

Breaking Changes:
(If any, describe what breaks and how to migrate)

Checklist:

  • Code compiles
  • Tests pass
  • Documentation updated
  • Changelog updated
  • No sensitive data exposed

@NikSimDev NikSimDev linked an issue Sep 4, 2026 that may be closed by this pull request
3 tasks
@lev2p1
lev2p1 merged commit 5a4b896 into master Sep 4, 2026
16 checks passed
@lev2p1
lev2p1 deleted the fix/134-server-stats branch September 4, 2026 20:55
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.

[BUG]: Thread leak in statistics

2 participants