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

Commit 1c24cb42 authored by Erik Kline's avatar Erik Kline Committed by gitbuildkicker
Browse files

More correctly close RA daemon socket.

Bug: 9580643
Bug: 30190913
Change-Id: I34e34624da09957d96fee38c3f2005e23eb1bee5
parent b58e460c
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;
    }