diff options
Diffstat (limited to 'Kernel/Net/NetworkTask.cpp')
-rw-r--r-- | Kernel/Net/NetworkTask.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Kernel/Net/NetworkTask.cpp b/Kernel/Net/NetworkTask.cpp index f45bf0d2a9..72938bce74 100644 --- a/Kernel/Net/NetworkTask.cpp +++ b/Kernel/Net/NetworkTask.cpp @@ -50,9 +50,9 @@ void NetworkTask_main() adapter.ipv4_netmask().to_string().characters(), adapter.ipv4_gateway().to_string().characters()); - adapter.set_on_receive([&pending_packets]() { + adapter.on_receive = [&pending_packets]() { pending_packets++; - }); + }; }); auto dequeue_packet = [&pending_packets]() -> Optional<KBuffer> { |