mirror of
https://github.com/oxen-io/session-android.git
synced 2024-12-24 08:47:46 +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() {
|
||||
AsyncTask.THREAD_POOL_EXECUTOR.execute(() -> {
|
||||
synchronized (CallRequestController.this) {
|
||||
if (canceled) return;
|
||||
|
||||
call.cancel();
|
||||
|
||||
if (stream != null) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user