From 940108b2a8dcef2209093f6c7e180c2d30cd85d1 Mon Sep 17 00:00:00 2001 From: Peter Thorson Date: Sun, 17 Mar 2013 18:25:35 -0500 Subject: [PATCH] fixes a bug in scatter gather writes with lengths other than 1 --- websocketpp/transport/iostream/connection.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/websocketpp/transport/iostream/connection.hpp b/websocketpp/transport/iostream/connection.hpp index fce69528f7..3dd962fb0c 100644 --- a/websocketpp/transport/iostream/connection.hpp +++ b/websocketpp/transport/iostream/connection.hpp @@ -163,10 +163,10 @@ protected: if (m_output_stream->bad()) { handler(make_error_code(error::bad_stream)); - } else { - handler(lib::error_code()); } } + + handler(lib::error_code()); } /// Set Connection Handle