Merge "Cleanup in EmulatorClipboardMonitor (1)" into tm-dev

This commit is contained in:
TreeHugger Robot
2022-05-13 05:26:00 +00:00
committed by Android (Google) Code Review

View File

@@ -72,7 +72,7 @@ class EmulatorClipboardMonitor implements Consumer<ClipData> {
Os.connect(fd, new VmSocketAddress(HOST_PORT, OsConstants.VMADDR_CID_HOST));
final byte[] handshake = createOpenHandshake();
Os.write(fd, handshake, 0, handshake.length);
writeFully(fd, handshake, 0, handshake.length);
mPipe = fd;
return true;
} catch (ErrnoException | SocketException | InterruptedIOException e) {