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

Commit d02b8e89 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "gd HCI: assign client_handler_ before execute queued callbacks"

parents e238f914 033112e5
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -31,13 +31,13 @@ class AclConnectionTracker : public ConnectionManagementCallbacks {
    ASSERT(client_callbacks_ == nullptr || queued_callbacks_.empty());
  }
  void RegisterCallbacks(ConnectionManagementCallbacks* callbacks, os::Handler* handler) {
    client_handler_ = handler;
    client_callbacks_ = callbacks;
    while (!queued_callbacks_.empty()) {
      auto iter = queued_callbacks_.begin();
      handler->Post(std::move(*iter));
      queued_callbacks_.erase(iter);
    }
    client_handler_ = handler;
    client_callbacks_ = callbacks;
  }

#define SAVE_OR_CALL(f, ...)                                                                                        \