mirror of
https://github.com/livebook-dev/livebook.git
synced 2024-09-20 01:55:56 +08:00
Do not crash when disconnecting runtime on unreachable node
This commit is contained in:
parent
073e7bb87d
commit
de7552a99b
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue