mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-04-02 05:27:41 -05:00
impr: Make sure all data is received by MCP bridge
This commit is contained in:
@@ -33,9 +33,9 @@ namespace hex::mcp {
|
||||
}
|
||||
|
||||
client.writeString(request);
|
||||
auto response = client.readString(4_MiB);
|
||||
auto response = client.readBytesUntil(0x00);
|
||||
if (!response.empty() && response.front() != 0x00)
|
||||
output << response << '\n';
|
||||
output << std::string(response.begin(), response.end()) << '\n';
|
||||
|
||||
if (!client.isConnected())
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user