updated possible deadlock
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Paul 2023-05-13 11:03:07 +02:00
parent 40811d9754
commit 0ad77342ea

View File

@ -150,6 +150,7 @@ async fn handle_fwblock(ctxclone: Arc<RwLock<Context>>, ret: &mut Vec<String>, f
let mut ctx = ctxclone.write().await;
ctx.gc_blocklist().await;
toblock = ctx.get_blocklist_toblock().await;
}
// apply firewall blocking
match fwblock(&toblock, ret, fwlen) {
@ -159,7 +160,6 @@ async fn handle_fwblock(ctxclone: Arc<RwLock<Context>>, ret: &mut Vec<String>, f
}
};
}
}
async fn watchfiles(ctxarc: &Arc<RwLock<Context>>) -> Receiver<FileEvent> {
let (bltx, blrx): (Sender<FileEvent>, Receiver<FileEvent>) = channel(BL_CHAN_SIZE);