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

Commit 85a03a60 authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Demote ASSERT to LOG_ERROR for double disconnect" am: 7affcb54 am: bf0d249e

parents d5e4f099 bf0d249e
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();