Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
theomonnom committed Oct 19, 2023
1 parent 8677566 commit 543bbcd
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 11 deletions.
38 changes: 29 additions & 9 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion livekit-api/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ serde_json = { version = "1.0", optional = true }
base64 = { version = "0.21", optional = true }

# access_token & services
jsonwebtoken = { version = "8", default-features = false, optional = true }
jsonwebtoken = { version = "9", default-features = false, optional = true }

# signal_client
tokio-tungstenite = { version = "0.20", optional = true }
Expand Down
3 changes: 2 additions & 1 deletion livekit-api/src/signal_client/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,8 @@ impl SignalClient {
pub async fn close(&self) {
self.inner.close().await;

if let Some((signal_task, close_tx)) = self.handle.lock().take() {
let handle = self.handle.lock().take();
if let Some((signal_task, close_tx)) = handle {
let _ = close_tx.send(());
let _ = signal_task.await;
}
Expand Down

0 comments on commit 543bbcd

Please sign in to comment.