Proper cast

This commit is contained in:
Alex Hultman
2023-01-08 23:43:44 +01:00
parent 286b2f2f1f
commit 46c8aebc0e
+1 -1
View File
@@ -261,7 +261,7 @@ private:
/* At this point we iterate all currently held subscriptions and emit an event for all of them */
if (webSocketData->subscriber && webSocketContextData->subscriptionHandler) {
for (Topic *t : webSocketData->subscriber->topics) {
webSocketContextData->subscriptionHandler(this, t->name, (int) t->size() - 1, (int) t->size());
webSocketContextData->subscriptionHandler((WebSocket<SSL, isServer, USERDATA> *) s, t->name, (int) t->size() - 1, (int) t->size());
}
}