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

@@ -50,8 +50,7 @@ fun NetworkInterface.formatAddresses() =
.toList() +
listOfNotNull(try {
hardwareAddress?.joinToString(":") { "%02x".format(it) }
} catch (e: SocketException) {
Timber.w(e)
} catch (_: SocketException) {
null
}))
.joinToString("\n")