Mute more SocketException

This commit is contained in:
Mygod
2019-01-03 23:51:16 +08:00
parent 615e7256d0
commit 719e8245a7
5 changed files with 6 additions and 10 deletions

View File

@@ -57,9 +57,7 @@ data class IpNeighbour(val ip: InetAddress, val dev: String, val lladdr: String,
val iface = NetworkInterface.getByIndex(index)
if (iface == null) Timber.w("Failed to find network interface #$index")
else return listOf(IpNeighbour(ip, iface.name, lladdr, state), result)
} catch (e: SocketException) {
Timber.d(e)
}
} catch (_: SocketException) { }
listOf(result)
} catch (e: Exception) {
Timber.w(IllegalArgumentException("Unable to parse line: $line", e))