Skip to content

fix: allow reading active log while AzimuthRPC is running - #9

Merged
Refilewski merged 1 commit into
mainfrom
fix/live-log-upload-sharing
Oct 18, 2026
Merged

Refilewski merged 1 commit into
mainfrom
fix/live-log-upload-sharing

Conversation

@Refilewski

Copy link
Copy Markdown
Owner

Bug

The Send logs to Discord... action throws "file is being used by another process" when the active logger holds the log open.

Root cause

FileLog.Create opens a persistent write handle (FileAccess.Write, FileShare.ReadWrite | FileShare.Delete), but File.ReadAllLines opens the reader with FileShare.Read, denying the already-open writer's write access on Windows.

Fix

  • Open a second read handle explicitly with FileShare.ReadWrite | FileShare.Delete.
  • Flush and snapshot under the existing logger lock; no need to stop logging or close the game.
  • Add a Windows smoke-test regression that reads the current log while the write handle is still open.

Checks

  • Windows CI, application smoke, native DLL build
  • Manual live Discord upload

This patch intentionally changes neither log deletion nor the relay/webhook nor car probing.

@Refilewski
Refilewski merged commit 977e01b into main Oct 18, 2026
2 checks passed
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.

1 participant