LibCore+Userland: Make Core::Timer::create_repeating() return ErrorOr

The FIXMEs must flow!
This commit is contained in:
Sam Atkins 2023-01-11 16:20:17 +00:00 committed by Andreas Kling
commit a15d44f019
Notes: sideshowbarker 2024-07-18 03:23:00 +09:00
12 changed files with 19 additions and 17 deletions

View file

@ -139,7 +139,8 @@ DHCPv4Client::DHCPv4Client(Vector<DeprecatedString> interfaces_with_dhcp_enabled
}
m_check_timer = Core::Timer::create_repeating(
1000, [this] { try_discover_ifs(); }, this);
1000, [this] { try_discover_ifs(); }, this)
.release_value_but_fixme_should_propagate_errors();
m_check_timer->start();