system/core
Revision | bec7df797b90248acea3014649ef07bf055ee2db (tree) |
---|---|
Zeit | 2019-05-21 09:41:55 |
Autor | Josh Gao <jmgao@goog...> |
Commiter | android-build-merger |
Merge "adbd: avoid starting multiple worker threads." into qt-dev
am: 5b882637e1
Change-Id: I073e5b7c608e153286a4f146b376a4b1dc64777a
@@ -314,11 +314,13 @@ struct UsbFfsConnection : public Connection { | ||
314 | 314 | if (bound) { |
315 | 315 | LOG(WARNING) << "received FUNCTIONFS_BIND while already bound?"; |
316 | 316 | running = false; |
317 | + break; | |
317 | 318 | } |
318 | 319 | |
319 | 320 | if (enabled) { |
320 | 321 | LOG(WARNING) << "received FUNCTIONFS_BIND while already enabled?"; |
321 | 322 | running = false; |
323 | + break; | |
322 | 324 | } |
323 | 325 | |
324 | 326 | bound = true; |
@@ -328,11 +330,13 @@ struct UsbFfsConnection : public Connection { | ||
328 | 330 | if (!bound) { |
329 | 331 | LOG(WARNING) << "received FUNCTIONFS_ENABLE while not bound?"; |
330 | 332 | running = false; |
333 | + break; | |
331 | 334 | } |
332 | 335 | |
333 | 336 | if (enabled) { |
334 | 337 | LOG(WARNING) << "received FUNCTIONFS_ENABLE while already enabled?"; |
335 | 338 | running = false; |
339 | + break; | |
336 | 340 | } |
337 | 341 | |
338 | 342 | enabled = true; |