• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Keine Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

system/core


Commit MetaInfo

Revisionbec7df797b90248acea3014649ef07bf055ee2db (tree)
Zeit2019-05-21 09:41:55
AutorJosh Gao <jmgao@goog...>
Commiterandroid-build-merger

Log Message

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

Change-Id: I073e5b7c608e153286a4f146b376a4b1dc64777a

Ändern Zusammenfassung

Diff

--- a/adb/daemon/usb.cpp
+++ b/adb/daemon/usb.cpp
@@ -314,11 +314,13 @@ struct UsbFfsConnection : public Connection {
314314 if (bound) {
315315 LOG(WARNING) << "received FUNCTIONFS_BIND while already bound?";
316316 running = false;
317+ break;
317318 }
318319
319320 if (enabled) {
320321 LOG(WARNING) << "received FUNCTIONFS_BIND while already enabled?";
321322 running = false;
323+ break;
322324 }
323325
324326 bound = true;
@@ -328,11 +330,13 @@ struct UsbFfsConnection : public Connection {
328330 if (!bound) {
329331 LOG(WARNING) << "received FUNCTIONFS_ENABLE while not bound?";
330332 running = false;
333+ break;
331334 }
332335
333336 if (enabled) {
334337 LOG(WARNING) << "received FUNCTIONFS_ENABLE while already enabled?";
335338 running = false;
339+ break;
336340 }
337341
338342 enabled = true;