Tari: connect to a node and get unique_id

This commit is contained in:
SChernykh
2024-02-15 17:43:15 +01:00
parent cf165af025
commit dbb21151b0
9 changed files with 281 additions and 166 deletions
+3 -3
View File
@@ -554,9 +554,9 @@ bool TCPServer::send_internal(Client* client, Callback<size_t, uint8_t*, size_t>
PANIC_STOP();
}
if (bytes_written == 0) {
LOGWARN(1, "send callback wrote 0 bytes, nothing to do");
return true;
if (!bytes_written) {
LOGWARN(1, "send callback failed");
return false;
}
WriteBuf* buf = get_write_buffer(bytes_written);