0
0
mirror of https://github.com/yse/easy_profiler.git synced 2025-01-14 00:27:55 +08:00
This commit is contained in:
Sergey Yagovtsev 2017-06-11 19:34:28 +03:00
parent fae8e4f748
commit 71ffde98de

View File

@ -1689,11 +1689,8 @@ void ProfileManager::listen(uint16_t _port)
socket.listen();
socket.accept();
EASY_EVENT("ClientConnected", EASY_COLOR_INTERNAL_EVENT, profiler::OFF);
hasConnect = true;
EASY_LOGMSG("GUI-client connected\n");
// Send reply
{
const bool wasLowPriorityET =
@ -1709,6 +1706,8 @@ void ProfileManager::listen(uint16_t _port)
while (hasConnect && !m_stopListen.load(std::memory_order_acquire))
{
EASY_LOGMSG("GUI-client connected\n");
char buffer[256] = {};
bytes = socket.receive(buffer, 255);