Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b1d961a4 authored by Tom Cherry's avatar Tom Cherry Committed by android-build-merger
Browse files

Merge "logd: clear timeout if no start time is given"

am: 5336d40e

Change-Id: Ic51bd6b029ef3c6dad1518f9e88cbbf29ea32a06
parents 741bdd33 5336d40e
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -212,6 +212,10 @@ bool LogReader::onDataAvailable(SocketClient* cli) {
        cli->getUid(), cli->getGid(), cli->getPid(), nonBlock ? 'n' : 'b', tail,
        logMask, (int)pid, sequence.nsec(), timeout);

    if (sequence == log_time::EPOCH) {
        timeout = 0;
    }

    LogTimeEntry::wrlock();
    auto entry = std::make_unique<LogTimeEntry>(
        *this, cli, nonBlock, tail, logMask, pid, sequence, timeout);