Skip to content

Commit

Permalink
fix(events): stuck in processing calling events
Browse files Browse the repository at this point in the history
  • Loading branch information
vitorhugods committed Oct 17, 2023
1 parent 14c3cf5 commit e6aa7df
Showing 1 changed file with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,17 @@ class OnConfigRequest(
callRepository.getCallConfigResponse(limit = null)
.fold({
callingLogger.i("[OnConfigRequest] - Error: $it")
// TODO: Add a better way to handle the Core Failure?
// We can call config_update with an error if there was a connectivity issue
// AVS will eventually ask us again for the config
// TODO(improvement): We can retry it ourselves and improve the app responsiveness.
// Maybe add a retry mechanism that listens for the network state
// Caches the config string and exposes a "invalidate" function
// That we could call when AVS requests new config.
calling.wcall_config_update(
inst = inst,
error = 1,
jsonString = ""
)
}, { config ->
calling.wcall_config_update(
inst = inst,
Expand Down

0 comments on commit e6aa7df

Please sign in to comment.