1
Fork 0
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:
Brian Gianforcaro 2022-01-03 03:20:39 -08:00 committed by Andreas Kling
parent 8bcce82887
commit 24066ba5ef
5 changed files with 8 additions and 8 deletions

View file

@ -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();