Skip to content

Commit 41daec2

Browse files
committed
actually issue the stop....
1 parent da0ec1e commit 41daec2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/grpcbox_socket.erl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ init([Pool, ListenOpts, PoolOpts]) ->
3636
MRef = monitor(port, Socket),
3737
{ok, _} = grpcbox_pool:accept_socket(Pool, Socket, AcceptorPoolSize),
3838
{ok, {Socket, MRef}};
39-
{error, eaddrinuse} = Error ->
39+
{error, eaddrinuse} ->
4040
%% our desired port is already in use
4141
%% its likely this grpcbox_socket server has been killed ( for reason unknown ) and is restarting
4242
%% previously it would have bound to the port before passing control to our acceptor pool
@@ -78,7 +78,7 @@ init([Pool, ListenOpts, PoolOpts]) ->
7878
socket_not_found ->
7979
noop
8080
end,
81-
Error;
81+
{stop, eaddrinuse};
8282
{error, Reason} ->
8383
{stop, Reason}
8484
end.

0 commit comments

Comments
 (0)