Commit c035666
Handle gRPC canellation case
there was a crash when onNext() is called 'after' shutdown service in
the guest is shut down. it happens really rarely, but for stability, add
cancellation status check, and callback for the status.
Fix: 398765174
Test: keep calling onNext() and check if there is no exception
Change-Id: I4d023647a1c69cc2f6b029fb05724bf98b99f35d1 parent 3b1afd0 commit c035666
File tree
1 file changed
+8
-0
lines changed- android/TerminalApp/java/com/android/virtualization/terminal
1 file changed
+8
-0
lines changedLines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| 31 | + | |
31 | 32 | | |
32 | 33 | | |
33 | 34 | | |
| |||
79 | 80 | | |
80 | 81 | | |
81 | 82 | | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
82 | 87 | | |
83 | 88 | | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
84 | 92 | | |
85 | 93 | | |
86 | 94 | | |
| |||
0 commit comments