Fix IpMonitor always poll with root

This commit is contained in:
Mygod
2019-03-09 02:02:39 -05:00
parent aedba90196
commit 49d0c1a825

View File

@@ -110,7 +110,7 @@ abstract class IpMonitor : Runnable {
}
override fun run() {
if (currentMode == Mode.Poll) try {
if (currentMode != Mode.PollRoot) try {
return poll()
} catch (e: IOException) {
DebugHelper.logEvent("ip_poll_failure")