Merge "Prevent LocalSocket from creating an fd if fd is already there" am: 616910fd53

am: d76576b6d1

Change-Id: I0b59b10a095bf23d4f26856690bf6be2a5304cbc
This commit is contained in:
Ajay Panicker
2017-01-06 01:46:10 +00:00
committed by android-build-merger

View File

@@ -73,6 +73,7 @@ public class LocalSocket implements Closeable {
this(new LocalSocketImpl(fd), SOCKET_UNKNOWN); this(new LocalSocketImpl(fd), SOCKET_UNKNOWN);
isBound = true; isBound = true;
isConnected = true; isConnected = true;
implCreated = true;
} }
private LocalSocket(LocalSocketImpl impl, int sockType) { private LocalSocket(LocalSocketImpl impl, int sockType) {