Skip to content

Commit

Permalink
no need to clone messages_tx here
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentfretin committed Aug 4, 2021
1 parent 0dbda29 commit 22926cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ extern "C" fn init(callbacks: *mut PluginCallbacks, config_path: *const c_char)
let mut senders = Vec::with_capacity(num_threads);
for i in 0..num_threads {
let (messages_tx, messages_rx) = mpsc::sync_channel(0);
senders.push(messages_tx.clone());
senders.push(messages_tx);

thread::Builder::new()
.name(format!("sfu msg {}", i))
Expand Down

0 comments on commit 22926cf

Please sign in to comment.