SPARK-678, 0 sized stream updates were being swallowed by the API.

This commit is contained in:
Pedro Pinto committed 2018-04-02 13:52:36 -04:00
1 parent 057e41342b
commit 557e539fad
1 file changed
+3 -2
+3 -2
View File
@@ -173,9 +173,10 @@ CAPI bool api_client_is_on_qb_thread(ApiClient* pclient) {
void safe_call_subscription_callback(raw_subscription_callback cb, EventType type, const std::vector<StreamUpdate>& updates, void* extra) {
safe_call_fn([&]() {
if (updates.size() > 0) {
if (updates.size() > 0)
cb(type, &updates[0], updates.size(), extra);
}
else
cb(type, nullptr, updates.size(), extra);
});
}