| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -25,6 +25,7 @@ int IOSession::Run(asio::io_context& ioc) | |||
| 25 | 25 | while(true) | |
| 26 | 26 | { | |
| 27 | 27 | ioc.run(); | |
| 28 | + ioc.reset(); | ||
| 28 | 29 | std::this_thread::sleep_for(std::chrono::milliseconds(1)); | |
| 29 | 30 | } | |
| 30 | 31 | }); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -5,6 +5,8 @@ | |||
| 5 | 5 | #ifndef _WIN32 | |
| 6 | 6 | #include <unistd.h> | |
| 7 | 7 | #endif | |
| 8 | + #include <thread> | ||
| 9 | + | ||
| 8 | 10 | #include "CodeFormatServer/Protocol/ProtocolParser.h" | |
| 9 | 11 | #include "CodeFormatServer/Protocol/ProtocolBuffer.h" | |
| 10 | 12 | ||
@@ -56,7 +58,6 @@ bool StandardIO::HasError() | |||
| 56 | 58 | void StandardIO::Write(std::string_view content) | |
| 57 | 59 | { | |
| 58 | 60 | asio::write(*_out, asio::buffer(content.data(), content.size())); | |
| 59 | - std::cout.flush(); | ||
| 60 | 61 | } | |
| 61 | 62 | ||
| 62 | 63 | #else | |
| Back | FazBrowse Home | New Git URL |
0 commit comments