diff --git a/src/lib/synergy/CApp.cpp b/src/lib/synergy/CApp.cpp index f7f26b62..b36d4a6a 100644 --- a/src/lib/synergy/CApp.cpp +++ b/src/lib/synergy/CApp.cpp @@ -359,10 +359,10 @@ CApp::pipeThread(void*) sa.lpSecurityDescriptor = &sd; HANDLE pipe = CreateNamedPipe( - _T("\\\\.\\pipe\\SynergyNode"), - PIPE_ACCESS_DUPLEX, - PIPE_TYPE_MESSAGE | PIPE_READMODE_MESSAGE | PIPE_WAIT, - PIPE_UNLIMITED_INSTANCES, + _T("\\\\.\\pipe\\SynergyNode"), + PIPE_ACCESS_DUPLEX, + PIPE_TYPE_MESSAGE | PIPE_READMODE_MESSAGE | PIPE_WAIT, + PIPE_UNLIMITED_INSTANCES, 1024, 1024, 0, &sa); if (pipe == INVALID_HANDLE_VALUE) @@ -380,12 +380,12 @@ CApp::pipeThread(void*) } buffer[bytesRead] = '\0'; - LOG((CLOG_DEBUG "ipc node server read: %s", buffer)); - + LOG((CLOG_DEBUG "ipc node server read: %s", buffer)); + handlePipeMessage(buffer); - } - - DisconnectNamedPipe(pipe); + } + + DisconnectNamedPipe(pipe); CloseHandle(pipe); } }