cat / goq
clone

turns a linux box into a private steam streaming appliance: plug in, tap your key, play from another computer

fix: detect client disconnect — recv.read() error was swallowed

dami etoile committed 17bc272
When the client disconnects, recv.read() returns Err, which fell into
the _ => {} catch-all and was ignored. The stream loop kept running,
stream_frames never returned, and the connection counter never
decremented.

Now Ok(Err(_)) triggers the disconnect break, same as Ok(Ok(Some(_))).
Fixed in both ffmpeg and xcap paths.
commit
17bc2728c55b8ed47c56ba25e5c30c9df61bb048
parent
cc543a92226ac53ed945950552c2661a50e28e5b
author
dami etoile <dami.etoile@gmail.com>
1 file changed, +2 -2
Msrc-tauri/src/commands.rs4++--
M src-tauri/src/commands.rs +2 -2