mirror of
https://github.com/oxen-io/session-android.git
synced 2024-12-25 09:17:44 +00:00
Fix possible double-cancel in CallRequestController.
This commit is contained in:
parent
5d9d6ac12b
commit
be66db898c
@ -26,6 +26,8 @@ public class CallRequestController implements RequestController {
|
|||||||
public void cancel() {
|
public void cancel() {
|
||||||
AsyncTask.THREAD_POOL_EXECUTOR.execute(() -> {
|
AsyncTask.THREAD_POOL_EXECUTOR.execute(() -> {
|
||||||
synchronized (CallRequestController.this) {
|
synchronized (CallRequestController.this) {
|
||||||
|
if (canceled) return;
|
||||||
|
|
||||||
call.cancel();
|
call.cancel();
|
||||||
|
|
||||||
if (stream != null) {
|
if (stream != null) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user