Well that's not correct
This commit is contained in:
@@ -163,8 +163,8 @@ public:
|
|||||||
webSocketContextDeleters = std::move(other.webSocketContextDeleters);
|
webSocketContextDeleters = std::move(other.webSocketContextDeleters);
|
||||||
|
|
||||||
/* Move TopicTree */
|
/* Move TopicTree */
|
||||||
other.topicTree = topicTree;
|
topicTree = other.topicTree;
|
||||||
topicTree = nullptr;
|
other.topicTree = nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
TemplatedApp(SocketContextOptions options = {}) {
|
TemplatedApp(SocketContextOptions options = {}) {
|
||||||
@@ -224,7 +224,7 @@ public:
|
|||||||
/* If we don't have a TopicTree yet, create one now */
|
/* If we don't have a TopicTree yet, create one now */
|
||||||
if (!topicTree) {
|
if (!topicTree) {
|
||||||
|
|
||||||
topicTree = new TopicTree<TopicTreeMessage>([](Subscriber *s, TopicTreeMessage &message, auto flags) {
|
topicTree = new TopicTree<TopicTreeMessage>([](Subscriber *s, TopicTreeMessage &message, TopicTree<TopicTreeMessage>::IteratorFlags flags) {
|
||||||
/* Subscriber's user is the socket */
|
/* Subscriber's user is the socket */
|
||||||
/* Unfortunately we need to cast is to PerSocketData = int
|
/* Unfortunately we need to cast is to PerSocketData = int
|
||||||
* since many different WebSocketContexts use the same
|
* since many different WebSocketContexts use the same
|
||||||
|
|||||||
Reference in New Issue
Block a user