Skip to content

Log a warning when timer left in zombie state#98

Open
HunterZ wants to merge 1 commit into
CarbonCommunity:mainfrom
HunterZ:zombieTimerWarn
Open

Log a warning when timer left in zombie state#98
HunterZ wants to merge 1 commit into
CarbonCommunity:mainfrom
HunterZ:zombieTimerWarn

Conversation

@HunterZ
Copy link
Copy Markdown

@HunterZ HunterZ commented May 6, 2026

If a plugin calls timer.In() or timer.Once() before OnServerInitialized(), Carbon will never schedule it, leaving it in a zombie state forever.

This change at least adds a warning so that plugin developers and sever owners have visibility into this zombie timer state.

Examples of this happening in the wild include Discord Chat by MJSU (breaks server booting messages) and Zone Manager by k1lly0u (probably harmless since it seems to be the result of OnPlayerSleep() firing for non-players).

@HunterZ HunterZ force-pushed the zombieTimerWarn branch from b734026 to 64f3f4e Compare May 30, 2026 18:38
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