erlang: Get rid of after_reply from thrift_processor
We are always flushing the response after we write it.
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@990985 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/lib/erl/src/thrift_processor.erl b/lib/erl/src/thrift_processor.erl
index 4ae0fd7..b751da6 100644
--- a/lib/erl/src/thrift_processor.erl
+++ b/lib/erl/src/thrift_processor.erl
@@ -71,8 +71,7 @@
catch
Type:Data when Type =:= throw orelse Type =:= error ->
handle_function_catch(State, Function, Type, Data)
- end,
- after_reply(OProto).
+ end.
handle_function_catch(State = #thrift_processor{service = Service},
Function, ErrType, ErrData) ->
@@ -181,8 +180,3 @@
ok = thrift_protocol:write(OProto, message_end),
ok = thrift_protocol:flush_transport(OProto),
ok.
-
-after_reply(OProto) ->
- ok = thrift_protocol:flush_transport(OProto)
- %% ok = thrift_protocol:close_transport(OProto)
- .