SPARK-678, 0 sized stream updates were being swallowed by the API.
This commit is contained in:
1 parent
057e41342b
commit
557e539fad
1 file changed
+3
-2
@@ -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);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user