Cleanup in EmulatorClipboardMonitor (1)
Bug: 231345789 Test: presubmit Signed-off-by: Roman Kiryanov <rkir@google.com> Change-Id: I3e96ab6ada8f0c892613a1f9dcc6b6ae12f6d73b Merged-In: I3e96ab6ada8f0c892613a1f9dcc6b6ae12f6d73b
This commit is contained in:
@@ -71,7 +71,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) {
|
||||
|
||||
Reference in New Issue
Block a user