Skip to content
Snippets Groups Projects
Commit 221fcd6e authored by Florian Fischer's avatar Florian Fischer
Browse files

[EchoServer] fix echo function

The break was not in the right scope and thus exiting the echo loop
immediately in the first iteration.
parent be5c3e1e
No related branches found
No related tags found
1 merge request!176[EchoServer] fix echo function
......@@ -58,8 +58,8 @@ auto main(int argc, char* argv[]) -> int {
if (bytes_recv < 0) {
LOGE("server read failed:" << strerror(errno));
}
break;
}
break;
if (unlikely(bytes_recv == 5 && strncmp("quit\n", buf, bytes_recv) == 0)) {
quit = true;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment