mirror of
https://github.com/valitydev/cowboy_draining_server.git
synced 2024-11-06 00:25:17 +00:00
fix drainer
This commit is contained in:
parent
f32cba9fef
commit
d50ee8685f
@ -64,8 +64,7 @@ handle_cast(_Msg, RanchRef) ->
|
||||
ok when RanchRef :: ranch:ref().
|
||||
terminate(shutdown, Ref) ->
|
||||
ok = ranch:suspend_listener(Ref),
|
||||
ok = ranch:wait_for_connections(Ref, '==', 0),
|
||||
ok = ranch:remove_connection(Ref);
|
||||
ok = ranch:wait_for_connections(Ref, '==', 0);
|
||||
terminate(_Msg, _RanchRef) ->
|
||||
ok.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user