Skip to content

Fix typo: thread.deamon -> thread.daemon in core/runtime.py - #326

Merged
KoljaB merged 1 commit into
KoljaB:masterfrom
g0rdonL:fix/thread-deamon-typo
Aug 27, 2026
Merged

Fix typo: thread.deamon -> thread.daemon in core/runtime.py#326
KoljaB merged 1 commit into
KoljaB:masterfrom
g0rdonL:fix/thread-deamon-typo

Conversation

@g0rdonL

@g0rdonL g0rdonL commented Aug 27, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Fixes a one-line typo in RealtimeSTT/core/runtime.py line 27: thread.deamon = True should be thread.daemon = True.
  • Because Python Thread objects allow arbitrary attribute assignment, the typo silently created a bogus deamon attribute instead of setting the real daemon flag, leaving the worker thread non-daemon. This can prevent the host process from exiting cleanly.

Verification

  • Searched the whole repo for deamon — only the one occurrence found and fixed; zero remaining after the change.
  • Confirmed no other code references .deamon (i.e. nothing relies on the buggy behavior).
  • Verified the file parses correctly after the change.

Fixes #325

Note: this fix was prepared with AI assistance (no CONTRIBUTING.md disclosure requirement found in the repo).

Thread objects allow arbitrary attribute assignment, so the typo'd
'deamon' attribute was silently set instead of the real 'daemon'
attribute, leaving the worker thread non-daemon. This can prevent
the host process from exiting cleanly.

Fixes KoljaB#325
@KoljaB
KoljaB merged commit eee0dc7 into KoljaB:master Aug 27, 2026
3 of 5 checks passed
@KoljaB

KoljaB commented Aug 27, 2026

Copy link
Copy Markdown
Owner

Thank you!

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: "Deamon" misspelled in core/runtime.py

2 participants