subscriber work
This commit is contained in:
1 parent
9b9e12d03c
commit
b0118cfc56
38 files changed
+101
-115
No files matched your search
+4
-5
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user