diff options
| author | Felix Fietkau | 2025-07-22 09:03:18 +0000 |
|---|---|---|
| committer | Felix Fietkau | 2025-07-22 09:03:18 +0000 |
| commit | 4a908ee731a6a8b8d48ef6138bd28dfa747f2a24 (patch) | |
| tree | ba9e016d21c445ab6b6bf6ab3dee77b936641d3a | |
| parent | 4265167cb6e8c647e3a45439b30009a1df7de8a5 (diff) | |
| download | udebug-4a908ee731a6a8b8d48ef6138bd28dfa747f2a24.tar.gz | |
udebug-cli: stop event loop on write failure
Signed-off-by: Felix Fietkau <nbd@nbd.name>
| -rwxr-xr-x | udebug-cli | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -96,8 +96,10 @@ function poll_data() { if (s) push(data, s); } - if (length(data) > 0) - pcap.write(data); + if (length(data) > 0) { + if (pcap.write(data) == null) + uloop.end(); + } } function open_ring(ring, poll) { |