mirror of
https://github.com/moonlight-stream/moonlight-android.git
synced 2026-10-22 08:07:54 +00:00
Also timeout RTSP if no response is received on an established connection for 10 seconds
This commit is contained in:
1 parent
0b9e7aa05b
commit
4d420b29cb
1 file changed
+1
@@ -57,6 +57,7 @@ public class RtspConnection {
|
||||
try {
|
||||
s.setTcpNoDelay(true);
|
||||
s.connect(new InetSocketAddress(context.serverAddress, PORT), RTSP_TIMEOUT);
|
||||
s.setSoTimeout(RTSP_TIMEOUT);
|
||||
|
||||
RtspStream rtspStream = new RtspStream(s.getInputStream(), s.getOutputStream());
|
||||
try {
|
||||
|
||||
Reference in new issue
Block a user