Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ec2748e3 authored by Erik Kline's avatar Erik Kline Committed by android-build-merger
Browse files

Merge \"More correctly close RA daemon socket.\" into nyc-mr1-dev

am: 09d4f4fd

Change-Id: I69e0bbde197af0e0021ae76c00d730f6b57d19b1
parents fafc4a76 09d4f4fd
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -30,7 +30,7 @@ import android.util.Log;

import com.android.internal.annotations.GuardedBy;

import libcore.io.IoUtils;
import libcore.io.IoBridge;
import libcore.util.HexEncoding;

import java.io.FileDescriptor;
@@ -457,7 +457,9 @@ public class RouterAdvertisementDaemon {

    private void closeSocket() {
        if (mSocket != null) {
            IoUtils.closeQuietly(mSocket);
            try {
                IoBridge.closeAndSignalBlockedThreads(mSocket);
            } catch (IOException ignored) {}
        }
        mSocket = null;
    }