Skip to content

Commit 2913653

Browse files
committed
fix: replace deprecated try_next() with try_recv() in session drain loop
1 parent 6f15474 commit 2913653

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/sacp/src/session.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -680,7 +680,7 @@ where
680680
// Step 3: Drain any messages that were already queued and forward to client.
681681
// These messages arrived before we dropped the handler but haven't been
682682
// consumed yet. We must forward them to maintain message ordering.
683-
while let Some(message) = update_rx.try_next().ok().flatten() {
683+
while let Some(message) = update_rx.try_recv().ok() {
684684
match message {
685685
SessionMessage::SessionMessage(dispatch) => {
686686
// Forward the message to the client

0 commit comments

Comments
 (0)