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

Commit 5b882637 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "adbd: avoid starting multiple worker threads." into qt-dev

parents 60312869 94fb36bf
Loading
Loading
Loading
Loading
+4 −0
Original line number Original line Diff line number Diff line
@@ -314,11 +314,13 @@ struct UsbFfsConnection : public Connection {
                        if (bound) {
                        if (bound) {
                            LOG(WARNING) << "received FUNCTIONFS_BIND while already bound?";
                            LOG(WARNING) << "received FUNCTIONFS_BIND while already bound?";
                            running = false;
                            running = false;
                            break;
                        }
                        }


                        if (enabled) {
                        if (enabled) {
                            LOG(WARNING) << "received FUNCTIONFS_BIND while already enabled?";
                            LOG(WARNING) << "received FUNCTIONFS_BIND while already enabled?";
                            running = false;
                            running = false;
                            break;
                        }
                        }


                        bound = true;
                        bound = true;
@@ -328,11 +330,13 @@ struct UsbFfsConnection : public Connection {
                        if (!bound) {
                        if (!bound) {
                            LOG(WARNING) << "received FUNCTIONFS_ENABLE while not bound?";
                            LOG(WARNING) << "received FUNCTIONFS_ENABLE while not bound?";
                            running = false;
                            running = false;
                            break;
                        }
                        }


                        if (enabled) {
                        if (enabled) {
                            LOG(WARNING) << "received FUNCTIONFS_ENABLE while already enabled?";
                            LOG(WARNING) << "received FUNCTIONFS_ENABLE while already enabled?";
                            running = false;
                            running = false;
                            break;
                        }
                        }


                        enabled = true;
                        enabled = true;