Please review this simple test fix for jdk17.

The cycle should run until connection is established (connection.isConnected() 
returns true) or error occurred (error != null)
This wrong condition causes test error if ListenerThread.getConnection() 
reaches "synchronized (this)" section earlier than ListenerThread.run()

-------------

Commit messages:
 - Fixed cycle condition in ListenerThread.getConnection

Changes: https://git.openjdk.java.net/jdk17/pull/150/files
 Webrev: https://webrevs.openjdk.java.net/?repo=jdk17&pr=150&range=00
  Issue: https://bugs.openjdk.java.net/browse/JDK-8269302
  Stats: 1 line in 1 file changed: 0 ins; 0 del; 1 mod
  Patch: https://git.openjdk.java.net/jdk17/pull/150.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk17 pull/150/head:pull/150

PR: https://git.openjdk.java.net/jdk17/pull/150

Reply via email to