WebSocket subscription handler broken

This commit is contained in:
uNetworkingAB
2023-01-02 18:21:05 +01:00
committed by GitHub
parent 988fdc7285
commit 8cf7e73862
+1 -1
View File
@@ -196,7 +196,7 @@ public:
Super::timeout(webSocketContextData->idleTimeoutComponents.second);
/* At this point we iterate all currently held subscriptions and emit an event for all of them */
if (webSocketContextData->subscriptionHandler) {
if (webSocketData->subscriber && webSocketContextData->subscriptionHandler) {
for (Topic *t : webSocketData->subscriber->topics) {
webSocketContextData->subscriptionHandler(this, t->name, (int) t->size() - 1, (int) t->size());
}