Commit 014326c
Remove GuardedAsyncTask wrapper for call.cancel() (facebook#48251)
Summary:
The original comment mentioning square/okhttp#869 predates the [upgrade to okhttp3](facebook@6bbaff2), which resolved the issue via square/okhttp#1592.
Cancel calls should now be async and don't need to be guarded. Removing this also fixes a discrepancy in NetworkingModule unit test verification.
Changelog: [Internal]
Reviewed By: javache
Differential Revision: D671570181 parent e577e48 commit 014326c
File tree
2 files changed
+5
-18
lines changed- packages/react-native/ReactAndroid/src
- main/java/com/facebook/react/modules/network
- test/java/com/facebook/react/modules/network
2 files changed
+5
-18
lines changedLines changed: 1 addition & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
18 | 17 | | |
19 | 18 | | |
20 | 19 | | |
| |||
673 | 672 | | |
674 | 673 | | |
675 | 674 | | |
676 | | - | |
677 | | - | |
678 | | - | |
679 | | - | |
680 | | - | |
681 | | - | |
682 | | - | |
683 | | - | |
| 675 | + | |
684 | 676 | | |
685 | 677 | | |
686 | 678 | | |
| |||
Lines changed: 4 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
34 | 33 | | |
35 | 34 | | |
36 | 35 | | |
| |||
73 | 72 | | |
74 | 73 | | |
75 | 74 | | |
76 | | - | |
| 75 | + | |
77 | 76 | | |
78 | 77 | | |
79 | 78 | | |
| |||
477 | 476 | | |
478 | 477 | | |
479 | 478 | | |
480 | | - | |
481 | 479 | | |
482 | 480 | | |
483 | | - | |
| 481 | + | |
484 | 482 | | |
485 | | - | |
| 483 | + | |
486 | 484 | | |
487 | 485 | | |
488 | 486 | | |
| |||
507 | 505 | | |
508 | 506 | | |
509 | 507 | | |
510 | | - | |
511 | 508 | | |
512 | 509 | | |
513 | | - | |
514 | | - | |
| 510 | + | |
515 | 511 | | |
516 | 512 | | |
517 | 513 | | |
| |||
520 | 516 | | |
521 | 517 | | |
522 | 518 | | |
523 | | - | |
524 | 519 | | |
525 | 520 | | |
526 | 521 | | |
| |||
0 commit comments