Skip to content

Commit 67102ac

Browse files
committed
format
1 parent 769c9d7 commit 67102ac

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/erlmld_wrk_statem.erl

+4-2
Original file line numberDiff line numberDiff line change
@@ -465,7 +465,10 @@ handle_event(?INTERNAL,
465465
%% next state is waiting for the MLD to close the connection.
466466
%% But it might not happen, so we'll close it ourselves after a timeout.
467467
Timeout = application:get_env(erlmld, shutdown_timeout, 5000),
468-
{next_state, {?PEER_READ, Kind}, activate(Data), [{{timeout, shutdown}, Timeout, shutdown}]};
468+
{next_state,
469+
{?PEER_READ, Kind},
470+
activate(Data),
471+
[{{timeout, shutdown}, Timeout, shutdown}]};
469472
_ ->
470473
{next_state, {?PEER_READ, NextReadKind}, activate(Data)}
471474
end;
@@ -476,7 +479,6 @@ handle_event(info, {tcp, _Socket, _Bin}, _State, _Data) ->
476479
handle_event(info, Message, _State, #data{worker_state = WorkerState}) ->
477480
error_logger:error_msg("~p ignoring unexpected message ~p~n", [WorkerState, Message]),
478481
keep_state_and_data;
479-
480482
handle_event({timeout, shutdown}, shutdown, _State, _Data) ->
481483
{stop, {error, shutdown_timeout}}.
482484

0 commit comments

Comments
 (0)