diff options
| author | Vito Caputo <vcaputo@pengaru.com> | 2023-07-05 21:02:00 -0700 | 
|---|---|---|
| committer | Vito Caputo <vcaputo@pengaru.com> | 2023-07-05 21:02:00 -0700 | 
| commit | 210b635371619638207d3602249aa52a6ec849c5 (patch) | |
| tree | bfd9bc0d733cfc242fc26f454a1502502557ab57 /src/modules/rkt | |
| parent | a96a3c4b6d59451a92540440db724274421e86e5 (diff) | |
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.
Diffstat (limited to 'src/modules/rkt')
| -rw-r--r-- | src/modules/rkt/rkt_scener.c | 4 | 
1 files changed, 3 insertions, 1 deletions
| 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); | 
