mirror of
https://gitlab.futo.org/videostreaming/grayjay.git
synced 2025-08-11 18:50:58 +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 thread = _thread
|
||||||
val pingThread = _pingThread
|
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")
|
Log.i(TAG, "(Re)starting thread because the thread has died")
|
||||||
|
|
||||||
_scopeIO?.let {
|
_scopeIO?.let {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue