Work son subscriptions.

This commit is contained in:
Brad Arant 2022-02-09 14:46:52 +00:00
parent 16ffd60e75
commit 6cf321ceb4
2 changed files with 2 additions and 2 deletions

View File

@ -173,7 +173,6 @@ namespace core {
reset = false;
// if(!needsToWrite())
delete this;
}
}

View File

@ -17,7 +17,7 @@ namespace core {
countSubscribed += (*subscription).second->unsubscribe(session);
if((*subscription).second->owner == &session) {
subscription = subscriptions.erase(subscription);
delete (*subscription).second;
// delete (*subscription).second;
++countPublished;
} else
++subscription;
@ -54,6 +54,7 @@ namespace core {
} else if(request[0].equals("unsubscribe")) {
subscription->unsubscribe(session);
} else if(request[0].equals("event")) {
// coreutils::Log(coreutils::LOG_DEBUG_2) << "request: [" << request << "].";
if(subscription->owner == &session) {
std::stringstream out;
subscription->process(request, out);