From 46c8aebc0e78f818dacfcc216f0e801d931f4810 Mon Sep 17 00:00:00 2001 From: Alex Hultman Date: Sun, 8 Jan 2023 23:43:44 +0100 Subject: [PATCH] Proper cast --- src/WebSocketContext.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/WebSocketContext.h b/src/WebSocketContext.h index 63f570f..c49a6ac 100644 --- a/src/WebSocketContext.h +++ b/src/WebSocketContext.h @@ -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 *) s, t->name, (int) t->size() - 1, (int) t->size()); } }