mirror of
https://gitlab.futo.org/videostreaming/grayjay.git
synced 2025-08-03 06:40:19 +00:00
Reverted disconnect based on pong timer.
This commit is contained in:
parent
bf3e8867c3
commit
ec12a06b88
1 changed files with 2 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue