From 210b635371619638207d3602249aa52a6ec849c5 Mon Sep 17 00:00:00 2001 From: Vito Caputo Date: Wed, 5 Jul 2023 21:02:00 -0700 Subject: modules/rkt: fix recv loop to continue on non-NL After putting the recv() in a for(;;) to not have to render a frame per byte received, I completely dropped the ball on moving the return and adding the continue to actually finish the change. This makes creating new scenes via pasting long settings strings far less laggy. A future improvement would be to not recv() a byte at a time, but this really isn't a perf-sensitive thing. --- src/modules/rkt/rkt_scener.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/modules/rkt/rkt_scener.c b/src/modules/rkt/rkt_scener.c index 74a0bff..8f134bb 100644 --- a/src/modules/rkt/rkt_scener.c +++ b/src/modules/rkt/rkt_scener.c @@ -782,9 +782,11 @@ int rkt_scener_update(rkt_context_t *ctxt) */ scener->input = til_str_chomp(scener->input); scener->state = scener->next_state; + + return 0; } - return 0; + continue; default: assert(0); -- cgit v1.2.3