Skip trying to poll rootless when in root mode
This commit is contained in:
@@ -152,7 +152,7 @@ abstract class IpMonitor {
|
|||||||
fun flushAsync() = GlobalScope.launch(Dispatchers.IO) { flush() }
|
fun flushAsync() = GlobalScope.launch(Dispatchers.IO) { flush() }
|
||||||
|
|
||||||
private suspend fun work(server: RootServer?): RootServer? {
|
private suspend fun work(server: RootServer?): RootServer? {
|
||||||
if (currentMode != Mode.PollRoot) try {
|
if (currentMode != Mode.PollRoot && currentMode != Mode.MonitorRoot) try {
|
||||||
poll()
|
poll()
|
||||||
return server
|
return server
|
||||||
} catch (e: IOException) {
|
} catch (e: IOException) {
|
||||||
|
|||||||
Reference in New Issue
Block a user