Say Connect for runtime if there is no connection

This commit is contained in:
José Valim 2022-10-03 23:58:26 +02:00
parent 964f4b04d1
commit e92d9910fa

View file

@ -35,7 +35,7 @@ defmodule LivebookWeb.SessionLive.ElixirStandaloneLive do
"""
end
defp matching_runtime?(%Runtime.ElixirStandalone{}), do: true
defp matching_runtime?(%Runtime.ElixirStandalone{} = runtime), do: Runtime.connected?(runtime)
defp matching_runtime?(_runtime), do: false
@impl true