Unverified Commit 41aea5e3 authored by Mygod's avatar Mygod Committed by GitHub

Ignore general exceptions from selector.select

Bug on Android 6-: https://bugs.openjdk.java.net/browse/JDK-4729342
parent b44c0fc1
...@@ -100,7 +100,7 @@ class ChannelMonitor : Thread("ChannelMonitor") { ...@@ -100,7 +100,7 @@ class ChannelMonitor : Thread("ChannelMonitor") {
while (running) { while (running) {
val num = try { val num = try {
selector.select() selector.select()
} catch (e: IOException) { } catch (e: Exception) {
printLog(e) printLog(e)
continue continue
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment