Skip to content

Commit

Permalink
WebSocket subscription handler broken
Browse files Browse the repository at this point in the history
  • Loading branch information
uNetworkingAB authored Jan 2, 2023
1 parent 988fdc7 commit 8cf7e73
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/WebSocket.h
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ struct WebSocket : AsyncSocket<SSL> {
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());
}
Expand Down

0 comments on commit 8cf7e73

Please sign in to comment.