mirror of
https://github.com/yse/easy_profiler.git
synced 2025-01-14 00:27:55 +08:00
fix #46
This commit is contained in:
parent
fae8e4f748
commit
71ffde98de
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user