diff --git a/app/src/main/java/com/futo/platformplayer/casting/FCastCastingDevice.kt b/app/src/main/java/com/futo/platformplayer/casting/FCastCastingDevice.kt index 13a0839e..9e12f78c 100644 --- a/app/src/main/java/com/futo/platformplayer/casting/FCastCastingDevice.kt +++ b/app/src/main/java/com/futo/platformplayer/casting/FCastCastingDevice.kt @@ -252,7 +252,7 @@ class FCastCastingDevice : CastingDevice { val thread = _thread val pingThread = _pingThread - if (thread == null || !thread.isAlive || pingThread == null || !pingThread.isAlive) { + if (_started && (thread == null || !thread.isAlive || pingThread == null || !pingThread.isAlive)) { Log.i(TAG, "(Re)starting thread because the thread has died") _scopeIO?.let {