Skip to content

Missing await on async sleep calls#331

Open
Jonty wants to merge 1 commit into
mainfrom
missing_await
Open

Missing await on async sleep calls#331
Jonty wants to merge 1 commit into
mainfrom
missing_await

Conversation

@Jonty

@Jonty Jonty commented Jun 9, 2026

Copy link
Copy Markdown
Member

Spotted an async sleep missing an await (so it wouldn't do anything), grepping found a couple more missing awaits.

if TwentyTwentyFour.hexpansion_states[hexindex] is None:
TwentyTwentyFour.hexpansion_states[hexindex] = now
eventbus.emit_async(HexpansionInsertionEvent(port=hexindex))
await eventbus.emit_async(HexpansionInsertionEvent(port=hexindex))

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this await breaks the buttons, should be non async emit instead. this is one of the callbacks used by the c code, so just goes on the mp scheduler.

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.

2 participants