Got the subscription event scope parameter added.

This commit is contained in:
Brad Arant committed 2022-02-13 00:23:56 +00:00
1 parent 6cf321ceb4
commit d13e3f9fb5
9 files changed
+97 -48

No files matched your search

+2 -7
View File
@@ -67,8 +67,6 @@ namespace core {
if(event.events & EPOLLRDHUP) {
readHangup = true;
shutdown("hangup received");
lock.unlock();
return false;
}
if(event.events & EPOLLIN) {
@@ -82,14 +80,11 @@ namespace core {
if(event.events & EPOLLHUP) {
shutdown();
lock.unlock();
return false;
}
lock.unlock();
reset = true;
return reset;
return !shutDown;
}
void Socket::onDataReceived(std::string data) {
@@ -172,7 +167,7 @@ namespace core {
shutDown = true;
reset = false;
// if(!needsToWrite())
delete this;
// delete this;
}
}