diff options
author | Roshan Pius <rpius@google.com> | 2020-05-29 15:47:43 -0700 |
---|---|---|
committer | Roshan Pius <rpius@google.com> | 2020-06-10 20:06:13 -0700 |
commit | a4fc5402d0a52aff7092160b7e73d071a53ef4a4 (patch) | |
tree | 575438bf04bde06a86fbe7249bfa081e38a86df6 /PREUPLOAD.cfg | |
parent | 6b61b75021ae98eab575dbcf9ccd244d0a821a1e (diff) |
WifiDiagnostics: Remove blocking call to readLine()
Changes in the CL:
a) Add a check for isReady() before invoking blocking readLine().
b) Add a timeout in the loop to ensure we're not looping forever.
Note: Even with this, there is a theoretical chance that we will get
stuck in readLine() since isReady() will indicate some bytes available,
but not necessarily EOL. But, the logcat daemon outputs a line of data
at a time.
Bug: 157062041
Test: Manual verification of wifi dumpsys after a connection failure.
Change-Id: I6bbdf5f2fe7ed6afc9dd65d95fcb9e938366fdad
Diffstat (limited to 'PREUPLOAD.cfg')
0 files changed, 0 insertions, 0 deletions