mirror of
https://git.sr.ht/~thestr4ng3r/chiaki
synced 2025-08-14 10:46:51 -07:00
Debounce Display Hosts harder
This commit is contained in:
parent
37109a1764
commit
bbdd87a875
1 changed files with 3 additions and 1 deletions
|
@ -121,6 +121,7 @@ class DiscoveryManager
|
|||
{
|
||||
if(active && !paused && discoveryService == null)
|
||||
{
|
||||
discoveredHostsSubjectRaw.onNext(listOf())
|
||||
try
|
||||
{
|
||||
discoveryService = DiscoveryService(DiscoveryServiceOptions(
|
||||
|
@ -137,7 +138,8 @@ class DiscoveryManager
|
|||
val service = discoveryService ?: return
|
||||
service.dispose()
|
||||
discoveryService = null
|
||||
discoveredHostsSubjectRaw.onNext(listOf())
|
||||
if(!active)
|
||||
discoveredHostsSubjectRaw.onNext(listOf())
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue