aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/ssl/src/ssl_tls_dist_ctrl.erl12
1 files changed, 7 insertions, 5 deletions
diff --git a/lib/ssl/src/ssl_tls_dist_ctrl.erl b/lib/ssl/src/ssl_tls_dist_ctrl.erl
index c1d5bc689e..1504d1c1e4 100644
--- a/lib/ssl/src/ssl_tls_dist_ctrl.erl
+++ b/lib/ssl/src/ssl_tls_dist_ctrl.erl
@@ -381,14 +381,16 @@ sock_send(SslSocket, Data) ->
death_row({send_error, {Type, Reason}})
end.
+-spec death_row() -> no_return().
death_row() ->
death_row(connection_closed).
-death_row(normal) ->
- %% We do not want to exit with normal
- %% exit reason since it wont bring down
- %% linked processes...
- death_row();
+-spec death_row(term()) -> no_return().
+%% death_row(normal) ->
+%% %% We do not want to exit with normal
+%% %% exit reason since it wont bring down
+%% %% linked processes...
+%% death_row();
death_row(Reason) ->
%% When the connection is on its way down operations
%% begin to fail. We catch the failures and call