chore: implementiere Zustandsprüfung für DiscoveryService und ConnectivityTracker, verbessere Plug-and-Play-Kompatibilität und optimiere LAN-Discovery

Signed-off-by: StefanMoCoAt <stefan.mo.co@gmail.com>
This commit is contained in:
2026-04-20 14:39:43 +02:00
parent 8806d11e3c
commit b94e0f2d9d
3 changed files with 16 additions and 12 deletions
@@ -21,11 +21,8 @@ class ConnectivityTracker : KoinComponent {
private val scope = CoroutineScope(Dispatchers.Default + SupervisorJob())
init {
startTracking()
}
private fun startTracking() {
fun startTracking() {
if (scope.isActive && _isOnline.value) return // Bereits aktiv (Dummy-Check)
scope.launch {
while (isActive) {
_isOnline.value = checkConnection()