Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: src/shared/Communication.cpp

Issue 11443036: Call WriteFile even for empty messages (Closed)
Patch Set: Created Aug. 13, 2013, 10:07 a.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/shared/Communication.cpp
===================================================================
--- a/src/shared/Communication.cpp
+++ b/src/shared/Communication.cpp
@@ -157,8 +157,6 @@
{
DWORD bytesWritten;
std::string data = message.Get();
- if (!data.length())
- return;
if (!WriteFile(pipe, data.c_str(), data.length(), &bytesWritten, 0))
throw std::runtime_error("Failed to write to pipe");
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld