mirror of
https://github.com/YGGverse/aquatic.git
synced 2026-04-01 02:05:30 +00:00
ws: socket worker: wait for interal close message in priority queue
This commit is contained in:
parent
579fcb2140
commit
071f088d8b
2 changed files with 27 additions and 18 deletions
|
|
@ -178,7 +178,6 @@ pub async fn run_socket_worker(
|
|||
connection_valid_until,
|
||||
out_message_sender,
|
||||
out_message_receiver,
|
||||
close_conn_receiver,
|
||||
server_start_instant,
|
||||
out_message_consumer_id,
|
||||
connection_id,
|
||||
|
|
@ -186,11 +185,11 @@ pub async fn run_socket_worker(
|
|||
ip_version
|
||||
};
|
||||
|
||||
runner.run(control_message_senders, stream).await;
|
||||
runner.run(control_message_senders, close_conn_receiver, stream).await;
|
||||
|
||||
connection_handles.borrow_mut().remove(connection_id);
|
||||
}),
|
||||
tq_regular,
|
||||
tq_prioritized,
|
||||
)
|
||||
.unwrap()
|
||||
.detach();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue