Skip to content

Commit 8328585

Browse files
mkroeningstlankes
authored andcommitted
fix(fd_write): break on incomplete write
1 parent 8048f02 commit 8328585

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/wasm/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,10 +182,10 @@ impl WasmManager {
182182
if result >= 0 {
183183
nwritten_bytes += result as i32;
184184
info!("nwritten_bytes = {}, len = {}", nwritten_bytes, len);
185-
/*if result >= len.try_into().unwrap() {
185+
if result < len.try_into().unwrap() {
186186
info!("break");
187187
break;
188-
}*/
188+
}
189189
} else {
190190
return (-result).try_into().unwrap();
191191
}

0 commit comments

Comments
 (0)