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:
Han Pengfei 2018-02-01 14:46:45 +08:00
commit 5e7d773d82

View file

@ -74,10 +74,11 @@ void AdbMessageProcessor::advance_state() {
if (state_ == closed_by_host) {
host_connector_.reset();
return;
} else {
wait_for_host_connection();
}
wait_for_host_connection();
lock_.unlock();
break;
case waiting_for_host_connection:
messenger_->send(reinterpret_cast<const char *>(ok_command.data()),