From be66db898c1fdbc6c524664b942abc9b8baa4f8e Mon Sep 17 00:00:00 2001 From: Greyson Parrelli Date: Sat, 2 Feb 2019 10:09:38 -0800 Subject: [PATCH] Fix possible double-cancel in CallRequestController. --- src/org/thoughtcrime/securesms/net/CallRequestController.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/org/thoughtcrime/securesms/net/CallRequestController.java b/src/org/thoughtcrime/securesms/net/CallRequestController.java index f1f82ea1e7..e3a3e1c665 100644 --- a/src/org/thoughtcrime/securesms/net/CallRequestController.java +++ b/src/org/thoughtcrime/securesms/net/CallRequestController.java @@ -26,6 +26,8 @@ public class CallRequestController implements RequestController { public void cancel() { AsyncTask.THREAD_POOL_EXECUTOR.execute(() -> { synchronized (CallRequestController.this) { + if (canceled) return; + call.cancel(); if (stream != null) {