mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-05 16:14:38 +00:00
Kernel: Use MUST + Vector::try_append instead of Vector::append
In preparation for making Vector::append unavailable during compilation of the Kernel.
This commit is contained in:
committed by
Andreas Kling
parent
8bcce82887
commit
24066ba5ef
@@ -319,7 +319,7 @@ void flush_delayed_tcp_acks()
|
||||
for (auto& socket : *delayed_ack_sockets) {
|
||||
MutexLocker locker(socket->mutex());
|
||||
if (socket->should_delay_next_ack()) {
|
||||
remaining_sockets.append(socket);
|
||||
MUST(remaining_sockets.try_append(socket));
|
||||
continue;
|
||||
}
|
||||
[[maybe_unused]] auto result = socket->send_ack();
|
||||
|
||||
Reference in New Issue
Block a user