Skip to content

Commit

Permalink
fix: listener handle port close
Browse files Browse the repository at this point in the history
  • Loading branch information
qzhuyan committed Nov 20, 2023
1 parent efe5f75 commit 9c4595e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/esockd_listener.erl
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,9 @@ handle_cast(Msg, State) ->
error_logger:error_msg("[~s] Unexpected cast: ~p", [?MODULE, Msg]),
{noreply, State}.

handle_info({'EXIT', LSock, _}, #state{lsock = LSock} = State) ->
error_logger:error_msg("~s Lsocket ~p closed", [?MODULE, LSock]),
{stop, lsock_closed, State};
handle_info(Info, State) ->
error_logger:error_msg("[~s] Unexpected info: ~p", [?MODULE, Info]),
{noreply, State}.
Expand Down

0 comments on commit 9c4595e

Please sign in to comment.