fix Ctrl-c catch on SSH BBS
This commit is contained in:
parent
e606b9ab3f
commit
39c47073a3
1 changed files with 1 additions and 1 deletions
|
@ -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})
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue