Fix missing the release of lock in AdbMessageProcessor when process
waiting_for_guest_accept_command. Signed-off-by: Han Pengfei <hanpfei@gmail.com>
This commit is contained in:
parent
a821a1ef8c
commit
5e7d773d82
1 changed files with 3 additions and 2 deletions
|
|
@ -74,10 +74,11 @@ void AdbMessageProcessor::advance_state() {
|
||||||
|
|
||||||
if (state_ == closed_by_host) {
|
if (state_ == closed_by_host) {
|
||||||
host_connector_.reset();
|
host_connector_.reset();
|
||||||
return;
|
} else {
|
||||||
|
wait_for_host_connection();
|
||||||
}
|
}
|
||||||
|
|
||||||
wait_for_host_connection();
|
lock_.unlock();
|
||||||
break;
|
break;
|
||||||
case waiting_for_host_connection:
|
case waiting_for_host_connection:
|
||||||
messenger_->send(reinterpret_cast<const char *>(ok_command.data()),
|
messenger_->send(reinterpret_cast<const char *>(ok_command.data()),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue