| Index: mojo/common/data_pipe_utils.cc
|
| diff --git a/mojo/common/data_pipe_utils.cc b/mojo/common/data_pipe_utils.cc
|
| index 09b600e3ef1212b4c9646b287212615e08d836e8..832db5d5d9b1284ed57e2a966aab360e320f0190 100644
|
| --- a/mojo/common/data_pipe_utils.cc
|
| +++ b/mojo/common/data_pipe_utils.cc
|
| @@ -92,6 +92,8 @@ bool BlockingCopyFromString(const std::string& source,
|
| char_buffer[byte_index++] = *it++;
|
| }
|
| EndWriteDataRaw(destination.get(), byte_index);
|
| + if (it == source.end())
|
| + return true;
|
| } else if (result == MOJO_RESULT_SHOULD_WAIT) {
|
| result = Wait(destination.get(), MOJO_HANDLE_SIGNAL_WRITABLE,
|
| MOJO_DEADLINE_INDEFINITE, nullptr);
|
|
|