commit | f6197e8fa25d7a411a08ca01f9af8f6278ef97d6 | [log] [tgz] |
---|---|---|
author | Amith Yamasani <yamasani@google.com> | Thu Feb 26 13:54:09 2015 -0800 |
committer | Amith Yamasani <yamasani@google.com> | Mon Mar 02 09:14:23 2015 -0800 |
tree | 1d470f545493b59af61f24c7184aa219cdbb4b94 | |
parent | c0a9a7ad6d96b7c59e1056f4a6638e344497b337 [diff] |
Avoid NPE when quickly toggling USB debugging state If you try to disable USB debugging before the socket to listen is opened in the thread, it will end up with an NPE. Do some locking around socket creation and closing to avoid this. Bug: 18708503 Change-Id: Iac43e4806fff1e411772b1ba1a070d8a7c776fcb