Use the right fd for flush call

bug 8498784
Change-Id: I03d3a588b01825b868d4b0229c60b7bb3b24a5f6
This commit is contained in:
Matthew Xie
2013-05-03 17:27:14 -07:00
parent cf30f631cf
commit d073bfdb3a

View File

@ -147,7 +147,7 @@ class LocalSocketImpl
public void flush() throws IOException {
FileDescriptor myFd = fd;
if (myFd == null) throw new IOException("socket closed");
while(pending_native(fd) > 0) {
while(pending_native(myFd) > 0) {
try {
Thread.sleep(10);
} catch (InterruptedException ie) {