Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(469)

Unified Diff: remoting/protocol/buffered_socket_writer.cc

Issue 10830046: Implement ChannelMultiplexer. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « remoting/proto/mux.proto ('k') | remoting/protocol/channel_factory.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/protocol/buffered_socket_writer.cc
diff --git a/remoting/protocol/buffered_socket_writer.cc b/remoting/protocol/buffered_socket_writer.cc
index 178f14a9e2091b2f79daa4979735959ce3cf5a88..de1135640c8403fd9042692cdc2dcfe6dddd14a3 100644
--- a/remoting/protocol/buffered_socket_writer.cc
+++ b/remoting/protocol/buffered_socket_writer.cc
@@ -55,7 +55,9 @@ bool BufferedSocketWriterBase::Write(
buffer_size_ += data->size();
DoWrite();
- return true;
+
+ // DoWrite() may trigger OnWriteError() to be called.
+ return !closed_;
}
void BufferedSocketWriterBase::DoWrite() {
« no previous file with comments | « remoting/proto/mux.proto ('k') | remoting/protocol/channel_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698