Skip to content

Commit

Permalink
commented try catch to identify issues for beta release
Browse files Browse the repository at this point in the history
  • Loading branch information
AdityaPrakash04 committed Aug 30, 2023
1 parent b40941f commit c2d883c
Showing 1 changed file with 14 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,13 @@ public static <T> T callOnApplicationThread(SimpleExoPlayer player, Callable<T>
return null;
}
if (isOnApplicationThread(player)) {
try {
return task.call();
} catch (Exception e) {
e.printStackTrace();
return null;
}
return task.call();
// try {
// return task.call();
// } catch (Exception e) {
// e.printStackTrace();
// return null;
// }
} else {
return callOnApplicationHandler(player, task);
}
Expand All @@ -57,13 +58,13 @@ private static <T> T callOnApplicationHandler(SimpleExoPlayer player, Callable<T
FutureTask<T> futureTask = new FutureTask<>(task);

handler.post(futureTask);

try {
return futureTask.get();
} catch (InterruptedException | ExecutionException e) {
e.printStackTrace();
return null;
}
return futureTask.get();
// try {
// return futureTask.get();
// } catch (InterruptedException | ExecutionException e) {
// e.printStackTrace();
// return null;
// }
}

}

0 comments on commit c2d883c

Please sign in to comment.