mirror of
https://github.com/RGBCube/serenity
synced 2025-05-28 17:35:08 +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:
parent
8bcce82887
commit
24066ba5ef
5 changed files with 8 additions and 8 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue