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

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

Merge "adbd_auth: dispatch pending prompts on success."

parents d17f197e bb927a13
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -178,6 +178,10 @@ public:

          this->callbacks_.key_authorized(arg, id);
          this->dispatched_prompt_ = std::nullopt;

          // We need to dispatch pending prompts here upon success as well,
          // since we might have multiple queued prompts.
          DispatchPendingPrompt();
        } else if (packet[0] == 'N' && packet[1] == 'O') {
          CHECK_EQ(2UL, packet.length());
          // TODO: Do we want a callback if the key is denied?