Fix possible double-cancel in CallRequestController.

This commit is contained in:
Greyson Parrelli 2019-02-02 10:09:38 -08:00
parent 5d9d6ac12b
commit be66db898c

View File

@ -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) {