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

Commit a6d2ad04 authored by Chris Manton's avatar Chris Manton
Browse files

Demote ASSERT to LOG_ERROR for double disconnect

Bug: 219494455
Tag: #refactor
Test: gd/cert/run
Change-Id: I052f8174f95d72865d7d13a710961fb2148a72f9
parent 5f931d41
Loading
Loading
Loading
Loading
+9 −2
Original line number Diff line number Diff line
@@ -434,8 +434,15 @@ class ShimAclConnection {
  }

  void Disconnect() {
    ASSERT_LOG(!is_disconnected_,
               "Cannot disconnect ACL multiple times handle:%04x", handle_);
    if (!is_disconnected_) {
      LOG_ERROR(
          "Cannot disconnect ACL multiple times handle:%04x creation_time:%s",
          handle_,
          common::StringFormatTimeWithMilliseconds(
              kConnectionDescriptorTimeFormat, creation_time_)
              .c_str());
      return;
    }
    is_disconnected_ = true;
    UnregisterEnqueue();
    queue_up_end_->UnregisterDequeue();