vfs: fix bad Request stopping future good Requests

This commit is contained in:
hosted-fornet 2023-10-12 17:17:13 -07:00
parent b3bac8b5a6
commit 29cf3fb53c

View File

@ -366,6 +366,16 @@ pub async fn vfs(
Some(vfs) => (Arc::clone(vfs), vec![]),
None => {
let VfsAction::New = request.action else {
// clean up queue
match drive_to_queue_lock.remove(&request.drive) {
None => {},
Some(mut queue) => {
let _ = queue.pop_back();
if !queue.is_empty() {
drive_to_queue_lock.insert(request.drive, queue);
}
},
}
send_to_loop
.send(make_error_message(
our_node.clone(),