Skip to content
Snippets Groups Projects
Commit c5099d28 authored by Ahmed Shehata's avatar Ahmed Shehata
Browse files

Fix a scenario where failing to get roundsList is blocking the whole message delivery callback

parent a65d6542
No related branches found
No related tags found
1 merge request!15Fix a scenario where failing to get roundsList is blocking the whole message delivery callback
......@@ -46,7 +46,7 @@ private final class Callback: NSObject, BindingsMessageDeliveryCallbackProtocol
let roundResults = try decoder.decode([Int].self, from: roundResultsData)
return onCallback(.delivered(roundResults: roundResults))
} catch {
fatalError("BindingsMessageDeliveryCallback roundResults decoding error: \(error)")
return onCallback(.delivered(roundResults: [Int]()))
}
}
if !delivered, roundResults == nil {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment