mirror of
https://gitlab.futo.org/videostreaming/grayjay.git
synced 2025-05-25 11:02:08 +02:00
Reverted disconnect based on pong timer.
This commit is contained in:
parent
bf3e8867c3
commit
ec12a06b88
@ -404,7 +404,7 @@ class FCastCastingDevice : CastingDevice {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (_lastPongTime != -1L && System.currentTimeMillis() - _lastPongTime > 6000) {
|
/*if (_lastPongTime != -1L && System.currentTimeMillis() - _lastPongTime > 6000) {
|
||||||
Logger.w(TAG, "Closing socket due to last pong time being larger than 6 seconds.")
|
Logger.w(TAG, "Closing socket due to last pong time being larger than 6 seconds.")
|
||||||
|
|
||||||
try {
|
try {
|
||||||
@ -412,7 +412,7 @@ class FCastCastingDevice : CastingDevice {
|
|||||||
} catch (e: Throwable) {
|
} catch (e: Throwable) {
|
||||||
Log.w(TAG, "Failed to close socket.", e)
|
Log.w(TAG, "Failed to close socket.", e)
|
||||||
}
|
}
|
||||||
}
|
}*/
|
||||||
|
|
||||||
Thread.sleep(2000)
|
Thread.sleep(2000)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user