From 241bbce264f5e3593b7ec904fed419456c39fe3e Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Sun, 11 Jul 2021 18:00:31 +0200 Subject: Kernel: LoopbackAdapter::create() => try_create() Allow this to fail (although we VERIFY that it succeeds during boot for now, since we don't want to boot without a loopback adapter.) --- Kernel/Net/LoopbackAdapter.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Kernel/Net/LoopbackAdapter.h') diff --git a/Kernel/Net/LoopbackAdapter.h b/Kernel/Net/LoopbackAdapter.h index d02fe147be..046350772a 100644 --- a/Kernel/Net/LoopbackAdapter.h +++ b/Kernel/Net/LoopbackAdapter.h @@ -17,7 +17,7 @@ private: LoopbackAdapter(); public: - static NonnullRefPtr create(); + static RefPtr try_create(); virtual ~LoopbackAdapter() override; virtual void send_raw(ReadonlyBytes) override; -- cgit v1.2.3