mirror of
https://github.com/livebook-dev/livebook.git
synced 2025-11-10 14:11:29 +08:00
Do not crash when disconnecting runtime on unreachable node
This commit is contained in:
parent
959be2f6f5
commit
fa7cf99990
1 changed files with 3 additions and 0 deletions
|
|
@ -330,6 +330,9 @@ defmodule Livebook.Runtime.ErlDist.RuntimeServer do
|
||||||
@spec stop(pid()) :: :ok
|
@spec stop(pid()) :: :ok
|
||||||
def stop(pid) do
|
def stop(pid) do
|
||||||
GenServer.stop(pid)
|
GenServer.stop(pid)
|
||||||
|
catch
|
||||||
|
# Gracefully handle lost connection to a remote node
|
||||||
|
:exit, _ -> :ok
|
||||||
end
|
end
|
||||||
|
|
||||||
@impl true
|
@impl true
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue