From 6c20ca831ee590d598fc577f37323bef9a6b0671 Mon Sep 17 00:00:00 2001 From: Roberto Viola Date: Wed, 30 Oct 2024 21:29:06 +0100 Subject: [PATCH 1/3] Update Scrcpy.java --- app/src/main/java/org/cagnulein/android_remote/Scrcpy.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/src/main/java/org/cagnulein/android_remote/Scrcpy.java b/app/src/main/java/org/cagnulein/android_remote/Scrcpy.java index c01e21f..e22a742 100644 --- a/app/src/main/java/org/cagnulein/android_remote/Scrcpy.java +++ b/app/src/main/java/org/cagnulein/android_remote/Scrcpy.java @@ -221,6 +221,8 @@ private void startConnection() { first_time = false; } + } else { + Threas.sleep(5); } From bb212a93e0ca0814f278310bd742b8420a2c2b0e Mon Sep 17 00:00:00 2001 From: Roberto Viola Date: Wed, 30 Oct 2024 21:31:40 +0100 Subject: [PATCH 2/3] Update Scrcpy.java --- app/src/main/java/org/cagnulein/android_remote/Scrcpy.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/org/cagnulein/android_remote/Scrcpy.java b/app/src/main/java/org/cagnulein/android_remote/Scrcpy.java index e22a742..24e6b0e 100644 --- a/app/src/main/java/org/cagnulein/android_remote/Scrcpy.java +++ b/app/src/main/java/org/cagnulein/android_remote/Scrcpy.java @@ -222,7 +222,7 @@ private void startConnection() { } } else { - Threas.sleep(5); + Thread.sleep(5); } From 0a42545bea75407bcc4198ac55daf9795ff8a922 Mon Sep 17 00:00:00 2001 From: Roberto Viola Date: Wed, 30 Oct 2024 21:35:01 +0100 Subject: [PATCH 3/3] Update Scrcpy.java --- app/src/main/java/org/cagnulein/android_remote/Scrcpy.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/org/cagnulein/android_remote/Scrcpy.java b/app/src/main/java/org/cagnulein/android_remote/Scrcpy.java index 24e6b0e..be7e755 100644 --- a/app/src/main/java/org/cagnulein/android_remote/Scrcpy.java +++ b/app/src/main/java/org/cagnulein/android_remote/Scrcpy.java @@ -222,7 +222,11 @@ private void startConnection() { } } else { - Thread.sleep(5); + try { + Thread.sleep(5); + } catch (InterruptedException e) { + e.printStackTrace(); + } }