Commit a2aa7e8
[AND-549] Improve call rejection/decline/timeout flow by fixing coroutines scope usage (#1420)
* fix: Run the timeout timer in user scope instead of call scope. As Calls are cleaned up when they are left
* fix: defer supervisorJob.cancel() until all child jobs complete
Replaces direct supervisorJob.cancel() with graceful shutdown using join()
inside UserScope(ClientScope()). Prevents abrupt termination of active coroutines
* fix: defer supervisorJob.cancel() until all child jobs complete
Replaces direct supervisorJob.cancel() with graceful shutdown using join()
inside UserScope(ClientScope()). Prevents abrupt termination of active coroutines
* chore: refactor
---------
Co-authored-by: Aleksandar Apostolov <[email protected]>1 parent d438842 commit a2aa7e8
File tree
2 files changed
+14
-2
lines changed- stream-video-android-core/src/main/kotlin/io/getstream/video/android/core
2 files changed
+14
-2
lines changedLines changed: 11 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
| 80 | + | |
| 81 | + | |
80 | 82 | | |
81 | 83 | | |
82 | 84 | | |
| |||
1223 | 1225 | | |
1224 | 1226 | | |
1225 | 1227 | | |
1226 | | - | |
| 1228 | + | |
1227 | 1229 | | |
1228 | 1230 | | |
1229 | 1231 | | |
1230 | 1232 | | |
1231 | 1233 | | |
| 1234 | + | |
| 1235 | + | |
| 1236 | + | |
| 1237 | + | |
| 1238 | + | |
| 1239 | + | |
| 1240 | + | |
| 1241 | + | |
1232 | 1242 | | |
1233 | 1243 | | |
1234 | 1244 | | |
| |||
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
103 | 103 | | |
104 | 104 | | |
105 | 105 | | |
| 106 | + | |
| 107 | + | |
106 | 108 | | |
107 | 109 | | |
108 | 110 | | |
| |||
1138 | 1140 | | |
1139 | 1141 | | |
1140 | 1142 | | |
1141 | | - | |
| 1143 | + | |
1142 | 1144 | | |
1143 | 1145 | | |
1144 | 1146 | | |
| |||
0 commit comments