AdbLib icon indicating copy to clipboard operation
AdbLib copied to clipboard

AdbStream.java: isClosed() should be synchronous

Open Krush206 opened this issue 1 year ago • 1 comments

Issues arise if this isn't called synchronously.

{
  AdbStream stream = connection.open("shell:uname");

  while(!stream.isClosed())
    ;
}

results in an infinite loop, even though the variable is set true.

Krush206 avatar Jan 29 '24 20:01 Krush206

Refer AdbConnection.java to https://github.com/cgutman/AdbLib/pull/18.

Krush206 avatar Jan 29 '24 20:01 Krush206