Got the subscription event scope parameter added.
This commit is contained in:
1 parent
6cf321ceb4
commit
d13e3f9fb5
9 files changed
+97
-48
No files matched your search
+2
-7
@@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user