oops
This commit is contained in:
parent
6f2a36c123
commit
1750a7cdbb
1 changed files with 2 additions and 2 deletions
|
|
@ -87,9 +87,9 @@ void CEventManager::startThread() {
|
||||||
|
|
||||||
// write all queued events
|
// write all queued events
|
||||||
for (auto& ev : m_dQueuedEvents) {
|
for (auto& ev : m_dQueuedEvents) {
|
||||||
std::string eventString = ev.event + ">>" + ev.data + "\n";
|
std::string eventString = (ev.event + ">>" + ev.data).substr(0, 1022) + "\n";
|
||||||
for (auto& fd : m_dAcceptedSocketFDs) {
|
for (auto& fd : m_dAcceptedSocketFDs) {
|
||||||
write(fd, eventString.substr(0, 1023).c_str(), eventString.length());
|
write(fd, eventString.c_str(), eventString.length());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue