mirror of
https://gitlab.futo.org/videostreaming/grayjay.git
synced 2025-04-20 03:24:50 +00:00
Do not restart threads when started is false.
This commit is contained in:
parent
781d0797e7
commit
7d091382c0
1 changed files with 1 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Reference in a new issue