mirror of
https://github.com/uqbar-dao/nectar.git
synced 2025-01-01 21:14:10 +03:00
vfs: fix bad Request stopping future good Requests
This commit is contained in:
parent
b3bac8b5a6
commit
29cf3fb53c
10
src/vfs.rs
10
src/vfs.rs
@ -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(),
|
||||
|
Loading…
Reference in New Issue
Block a user