mirror of
https://github.com/Dangoware/confetti-box.git
synced 2025-04-19 07:12:58 -05:00
Made websocket automatically finish when all bytes have been uploaded
This commit is contained in:
parent
b76ebd339c
commit
a282bc588b
1 changed files with 1 additions and 1 deletions
|
@ -301,7 +301,7 @@ pub async fn websocket_upload(
|
|||
|
||||
let message = message.unwrap().into_data();
|
||||
offset += message.len() as u64;
|
||||
if (offset > info.1.size) | (offset > max_filesize) {
|
||||
if (offset >= info.1.size) | (offset > max_filesize) {
|
||||
break
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue