Commit 4480679
committed
networking: Fully fix requests failing when turning network off and on facebook#19709.
The previous commit partially fixed facebook#19709 by evicting all idle
connections on DISCONNECT and CONNECTING events. To fully fix facebook#19709, also
cancel all ongoing calls on these events. Cancel the ongoing calls
before evicting all idle connections, because cancelling the ongoing
calls can result in more idle connections.1 parent aa2e00a commit 4480679
File tree
1 file changed
+1
-0
lines changed- ReactAndroid/src/main/java/com/facebook/react/modules/network
1 file changed
+1
-0
lines changedLines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
| 88 | + | |
88 | 89 | | |
89 | 90 | | |
90 | 91 | | |
| |||
0 commit comments