cln4rust icon indicating copy to clipboard operation
cln4rust copied to clipboard

remove the unwrap while writing to a std

Open vincenzopalazzo opened this issue 1 year ago • 0 comments

If the plugin crash this code https://github.com/laanwj/cln4rust/blob/master/plugin/src/plugin.rs#L80-L83 cause a panic

We should not unwrap but we ok with a failure, something like

let _ = write.flush();

vincenzopalazzo avatar Feb 06 '24 20:02 vincenzopalazzo