THRIFT-3085 thrift_reconnecting_client never tries to reconnect
CLient: Erlang
Patch: NOMORECOFFEE <github.coffee@hotmail.com>
This closes #427
gen_server does not handle message try_connect after unsuccessful connection, and gen_server always return {error, noconn}
diff --git a/lib/erl/src/thrift_reconnecting_client.erl b/lib/erl/src/thrift_reconnecting_client.erl
index 8ff1941..9dd627a 100644
--- a/lib/erl/src/thrift_reconnecting_client.erl
+++ b/lib/erl/src/thrift_reconnecting_client.erl
@@ -156,6 +156,9 @@
%% {stop, Reason, State}
%% Description: Handling all non call/cast messages
%%--------------------------------------------------------------------
+handle_info( try_connect, State ) ->
+ { noreply, try_connect( State ) };
+
handle_info( _Info, State ) ->
{ noreply, State }.