Work son subscriptions.
This commit is contained in:
parent
16ffd60e75
commit
6cf321ceb4
@ -173,7 +173,6 @@ namespace core {
|
||||
reset = false;
|
||||
// if(!needsToWrite())
|
||||
delete this;
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user