diff options
author | Sam Atkins <atkinssj@serenityos.org> | 2023-01-11 16:31:10 +0000 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2023-01-12 11:25:51 +0100 |
commit | a8cf0c9371f7ba500cc4920889bc06d78623e980 (patch) | |
tree | e6ac140bb2b697d69417e9ff944576350671a94a /Userland/Services/DHCPClient/DHCPv4Client.cpp | |
parent | a15d44f019dc60b001c565ce0b940cc87024dbfd (diff) | |
download | serenity-a8cf0c9371f7ba500cc4920889bc06d78623e980.zip |
LibCore+Userland: Make Core::Timer::create_single_shot() return ErrorOr
clang-format sure has some interesting opinions about where to put a
method call that comes after a lambda. :thonk:
Diffstat (limited to 'Userland/Services/DHCPClient/DHCPv4Client.cpp')
-rw-r--r-- | Userland/Services/DHCPClient/DHCPv4Client.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Userland/Services/DHCPClient/DHCPv4Client.cpp b/Userland/Services/DHCPClient/DHCPv4Client.cpp index 20f3c89f99..bb8c16ed81 100644 --- a/Userland/Services/DHCPClient/DHCPv4Client.cpp +++ b/Userland/Services/DHCPClient/DHCPv4Client.cpp @@ -261,7 +261,8 @@ void DHCPv4Client::handle_ack(DHCPv4Packet const& packet, ParsedDHCPv4Options co transaction->has_ip = false; dhcp_discover(interface); }, - this); + this) + .release_value_but_fixme_should_propagate_errors(); Optional<IPv4Address> gateway; if (auto routers = options.get_many<IPv4Address>(DHCPOption::Router, 1); !routers.is_empty()) @@ -288,7 +289,8 @@ void DHCPv4Client::handle_nak(DHCPv4Packet const& packet, ParsedDHCPv4Options co [this, iface = InterfaceDescriptor { iface }] { dhcp_discover(iface); }, - this); + this) + .release_value_but_fixme_should_propagate_errors(); } void DHCPv4Client::process_incoming(DHCPv4Packet const& packet) |