diff --git a/LICENSE b/LICENSE index 090fe0b..e0aecaf 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2025 Shintaro Ito +Copyright (c) 2026 foctal Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/websock-wasm-mux/src/session.rs b/websock-wasm-mux/src/session.rs index 4f132ff..9be9f17 100644 --- a/websock-wasm-mux/src/session.rs +++ b/websock-wasm-mux/src/session.rs @@ -734,8 +734,8 @@ impl SessionInner { if batch_frames >= inner.limits.max_batch_frames || batch.len() >= max_bytes { break; } - match outbound_rx.try_next() { - Ok(Some(OutboundCmd::Frame(next_frame))) => { + match outbound_rx.try_recv() { + Ok(OutboundCmd::Frame(next_frame)) => { let next = next_frame.encode().freeze(); if !batch.is_empty() && batch.len() + next.len() > max_bytes { break; @@ -743,7 +743,6 @@ impl SessionInner { batch.extend_from_slice(&next); batch_frames += 1; } - Ok(None) => break, Err(_) => break, } }