Merge "adbd: avoid starting multiple worker threads." am: 5ddd49eeae
am: dcfc785d20
Change-Id: Id5fbaba786214b2d5b9dcab7f433ce12f850d35d
This commit is contained in:
commit
d594359e7f
|
@ -310,11 +310,13 @@ struct UsbFfsConnection : public Connection {
|
|||
if (bound) {
|
||||
LOG(WARNING) << "received FUNCTIONFS_BIND while already bound?";
|
||||
running = false;
|
||||
break;
|
||||
}
|
||||
|
||||
if (enabled) {
|
||||
LOG(WARNING) << "received FUNCTIONFS_BIND while already enabled?";
|
||||
running = false;
|
||||
break;
|
||||
}
|
||||
|
||||
bound = true;
|
||||
|
@ -324,11 +326,13 @@ struct UsbFfsConnection : public Connection {
|
|||
if (!bound) {
|
||||
LOG(WARNING) << "received FUNCTIONFS_ENABLE while not bound?";
|
||||
running = false;
|
||||
break;
|
||||
}
|
||||
|
||||
if (enabled) {
|
||||
LOG(WARNING) << "received FUNCTIONFS_ENABLE while already enabled?";
|
||||
running = false;
|
||||
break;
|
||||
}
|
||||
|
||||
enabled = true;
|
||||
|
|
Loading…
Reference in New Issue