File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
src/main/java/org/keepassxc Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change 1616import java .nio .file .Path ;
1717import java .nio .file .Paths ;
1818import java .nio .file .StandardOpenOption ;
19+ import java .util .concurrent .ExecutionException ;
1920import java .util .concurrent .Future ;
2021
2122public class WindowsConnection extends Connection {
@@ -65,8 +66,11 @@ protected void sendCleartextMessage(String msg) throws IOException {
6566 protected JSONObject getCleartextResponse () {
6667 var raw = new StringBuilder ();
6768 long position = 0 ;
68- Future <Integer > operation = pipe .read (buffer , position );
69- while (!operation .isDone ());
69+ try {
70+ pipe .read (buffer , position ).get ();
71+ } catch (InterruptedException | ExecutionException e ) {
72+ log .error (e .toString (), e .getCause ());
73+ }
7074 buffer .flip ();
7175 charsetDecoder .decode (buffer , charBuffer , true );
7276 charBuffer .flip ();
You can’t perform that action at this time.
0 commit comments