subscriber work

This commit is contained in:
Brad Arant committed 2023-03-10 12:55:46 -08:00
1 parent 9b9e12d03c
commit b0118cfc56
38 files changed
+101 -115

No files matched your search

+4 -5
View File
@@ -144,14 +144,13 @@ namespace core
}
}
int Socket::write(std::string data, Socket *sender) {
int Socket::write(std::string data) {
outlock.lock();
fifo.emplace(data);
outlock.unlock();
if(sender && (sender != this))
if(!inHandler) {
ePoll.resetSocket(this);
}
if(!inHandler) {
ePoll.resetSocket(this);
}
return 1;
}