Skip to content
Snippets Groups Projects

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

1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
@@ -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 {
Loading