Various bugfixes

This commit is contained in:
Mygod
2019-07-20 16:15:26 +08:00
parent 184ce94590
commit 0ab3ccf8d5
3 changed files with 23 additions and 25 deletions

View File

@@ -62,7 +62,7 @@ class IpNeighbourMonitor private constructor() : IpMonitor() {
private fun postUpdateLocked() {
if (updatePosted || instance != this) return
GlobalScope.launch(Dispatchers.Main) {
GlobalScope.launch {
val neighbours = synchronized(neighbours) {
updatePosted = false
neighbours.values.toList()