Reset the unlock.
Signed-off-by: Han Pengfei <hanpfei@gmail.com>
This commit is contained in:
parent
381715aabd
commit
04ceffa6b6
1 changed files with 4 additions and 4 deletions
|
|
@ -72,12 +72,12 @@ void AdbMessageProcessor::advance_state() {
|
||||||
// one is established but will not use it until the active one is closed.
|
// one is established but will not use it until the active one is closed.
|
||||||
lock_.lock();
|
lock_.lock();
|
||||||
|
|
||||||
if (state_ == closed_by_host)
|
if (state_ == closed_by_host) {
|
||||||
host_connector_.reset();
|
host_connector_.reset();
|
||||||
else
|
return;
|
||||||
wait_for_host_connection();
|
}
|
||||||
|
|
||||||
lock_.unlock();
|
wait_for_host_connection();
|
||||||
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