From 7772d931a1908fa924972f4725de9e8ed3851d97 Mon Sep 17 00:00:00 2001 From: David Reiss Date: Mon, 30 Aug 2010 22:05:15 +0000 Subject: [PATCH] erlang: Make framed_transport not write out its buffer when closed This complicates the code, and users can be expected to call flush when they want to write data to the underlying transport. git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@990969 13f79535-47bb-0310-9956-ffa450edef68 --- lib/erl/src/thrift_framed_transport.erl | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/erl/src/thrift_framed_transport.erl b/lib/erl/src/thrift_framed_transport.erl index 01bab70b..9a29ecd0 100644 --- a/lib/erl/src/thrift_framed_transport.erl +++ b/lib/erl/src/thrift_framed_transport.erl @@ -154,7 +154,6 @@ handle_call(flush, _From, State) -> %% Description: Handling cast messages %%-------------------------------------------------------------------- handle_cast(close, State) -> - {_, State1} = do_flush(State), %% Wrapped is closed by terminate/2 %% error_logger:info_msg("thrift_framed_transport ~p: closing", [self()]), {stop, normal, State}; -- 2.17.1