Skip to content

Commit ff6fee8

Browse files
committed
fix: make supervisor stop an async task again
1 parent 0d33c3e commit ff6fee8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/connection.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -457,7 +457,7 @@ defmodule Kadabra.Connection do
457457

458458
def handle_disconnect(state) do
459459
send(state.client, {:closed, state.supervisor})
460-
Kadabra.Supervisor.stop(state.supervisor)
460+
Task.start(fn -> Kadabra.Supervisor.stop(state.supervisor) end)
461461

462462
{:stop, :normal, state}
463463
end

0 commit comments

Comments
 (0)