From b1cbc53d71c25ef26c10c64cee5d4ac4edd6b232 Mon Sep 17 00:00:00 2001 From: Chris McCord Date: Fri, 6 Sep 2024 13:11:41 -0400 Subject: [PATCH] debug --- lib/flame/code_sync.ex | 2 +- lib/flame/runner.ex | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/flame/code_sync.ex b/lib/flame/code_sync.ex index a66c13a..71dd303 100644 --- a/lib/flame/code_sync.ex +++ b/lib/flame/code_sync.ex @@ -292,7 +292,7 @@ defmodule FLAME.CodeSync do def rm_packaged_stream(%PackagedStream{} = pkg) do case pkg.stream do - val when is_binary(val) or is_nil(val) -> :noop + val when is_list(val) or is_nil(val) -> :noop %File.Stream{path: path} -> File.rm(path) end diff --git a/lib/flame/runner.ex b/lib/flame/runner.ex index 5f68e79..31017f0 100644 --- a/lib/flame/runner.ex +++ b/lib/flame/runner.ex @@ -307,7 +307,7 @@ defmodule FLAME.Runner do } = new_runner ip_port = - if base_sync_stream && is_binary(base_sync_stream.stream) do + if base_sync_stream && base_sync_stream.eager do {:ok, listen_socket} = :gen_tcp.listen(0, [ :binary,