Do not crash when disconnecting runtime on unreachable node

This commit is contained in:
Jonatan Kłosko 2024-09-19 17:24:21 +07:00
parent 073e7bb87d
commit de7552a99b

View file

@ -330,6 +330,9 @@ defmodule Livebook.Runtime.ErlDist.RuntimeServer do
@spec stop(pid()) :: :ok
def stop(pid) do
GenServer.stop(pid)
catch
# Gracefully handle lost connection to a remote node
:exit, _ -> :ok
end
@impl true