Skip to content

Fix crash loop when ACMI stream sends zero ReferenceTime#697

Merged
dharmab merged 1 commit into
mainfrom
fix/zero-reference-time
Jun 7, 2026
Merged

Fix crash loop when ACMI stream sends zero ReferenceTime#697
dharmab merged 1 commit into
mainfrom
fix/zero-reference-time

Conversation

@dharmab

@dharmab dharmab commented Jun 7, 2026

Copy link
Copy Markdown
Owner

No description provided.

DCS2ACMI sends ReferenceTime=0001-01-01T00:00:00Z as a base epoch,
encoding actual mission time as a large offset. This date is also
Go's zero time.Time, so the IsZero() guard that detects "reference
time not yet received" fired on every time frame, causing an infinite
reconnect loop against Lima Kilo.

Replace the IsZero() check with a dedicated referenceTimeSet bool.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@dharmab dharmab enabled auto-merge (rebase) June 7, 2026 22:41
@dharmab dharmab merged commit 503faae into main Jun 7, 2026
8 checks passed
@dharmab dharmab deleted the fix/zero-reference-time branch June 7, 2026 22:45
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