mirror of
https://github.com/livebook-dev/livebook.git
synced 2025-10-09 04:57:18 +08:00
Do not crash when disconnecting runtime on unreachable node
This commit is contained in:
parent
073e7bb87d
commit
de7552a99b
1 changed files with 3 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue