fix Ctrl-c catch on SSH BBS

This commit is contained in:
duponin 2022-05-18 20:06:16 +02:00
parent e606b9ab3f
commit 39c47073a3

View file

@ -123,7 +123,7 @@ defp wait_input(state, input) do
loop(%{state | counter: state.counter + 1}) loop(%{state | counter: state.counter + 1})
{:error, :interrupted} -> {:input, ^input, {:error, :interrupted}} ->
IO.puts("Caught Ctrl+C...") IO.puts("Caught Ctrl+C...")
loop(%{state | counter: state.counter + 1}) loop(%{state | counter: state.counter + 1})