Merge "Prevent LocalSocket from creating an fd if fd is already there"

am: 616910fd53

Change-Id: I90192dd7e656b9bec62815ad628fc4e67f806240
This commit is contained in:
Ajay Panicker
2017-01-06 01:41:09 +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) {