mirror of
https://github.com/YGGverse/aquatic.git
synced 2026-03-31 17:55:36 +00:00
aquatic_ws: mio: release torrent map lock quicker in handlers
This commit is contained in:
parent
2bed6ccdc5
commit
1d34ba25bb
1 changed files with 2 additions and 0 deletions
|
|
@ -83,6 +83,8 @@ pub fn run_request_worker(
|
|||
);
|
||||
}
|
||||
|
||||
::std::mem::drop(torrent_map_guard);
|
||||
|
||||
for (meta, out_message) in out_messages.drain(..) {
|
||||
wake_socket_workers[meta.out_message_consumer_id.0] = true;
|
||||
out_message_sender.send(meta, out_message);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue