Skip to content

fix(dbus): WiFi Connection Hangs#45

Merged
cachebag merged 4 commits intomasterfrom
dev
Nov 3, 2025
Merged

fix(dbus): WiFi Connection Hangs#45
cachebag merged 4 commits intomasterfrom
dev

Conversation

@cachebag
Copy link
Owner

@cachebag cachebag commented Nov 3, 2025

WiFi connection attempts would hang indefinitely after the scan step, preventing users from connecting to any network (open or secured).

I was mixing async runtimes - tokio::time::sleep() was blocking forever inside glib::MainContext::spawn_local() tasks. These runtimes are incompatible.

I replaced all tokio::time::sleep() calls with futures_timer::Delay in the connect() method, which is runtime-agnostic and works with both tokio and glib contexts.

Note

Current implementation uses polling with delays. Future PR will refactor to event-driven D-Bus signals for production-quality connection handling. See #46

Fixed critical bug where WiFi connection attempts would hang indefinitely
after requesting a network scan. The issue was caused by mixing async
runtimes - using `tokio::time::sleep()` within `glib::MainContext::spawn_local()`
tasks, which are incompatible.
@cachebag cachebag self-assigned this Nov 3, 2025
Updated README to enhance formatting and add an image.
@cachebag cachebag added the bug Something isn't working label Nov 3, 2025
@cachebag cachebag merged commit d6b214c into master Nov 3, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant