Skip to content

Commit

Permalink
fix(android): spawn dedicated thread for connlib (#4145)
Browse files Browse the repository at this point in the history
Same as #4141 but for Android.
  • Loading branch information
thomaseizinger committed Mar 14, 2024
1 parent 91de68f commit c62202a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion rust/connlib/clients/android/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,9 @@ fn connect(
public_key.to_bytes(),
)?;

let runtime = tokio::runtime::Builder::new_current_thread()
let runtime = tokio::runtime::Builder::new_multi_thread()
.worker_threads(1)
.thread_name("connlib")
.enable_all()
.build()?;

Expand Down

0 comments on commit c62202a

Please sign in to comment.