summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--mullvad-jni/src/vpn_service_tun_provider.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/mullvad-jni/src/vpn_service_tun_provider.rs b/mullvad-jni/src/vpn_service_tun_provider.rs
index f55bc466d6..0d3f28b754 100644
--- a/mullvad-jni/src/vpn_service_tun_provider.rs
+++ b/mullvad-jni/src/vpn_service_tun_provider.rs
@@ -93,7 +93,7 @@ impl VpnServiceTunProvider {
if self.active_tun.is_none() || self.last_tun_config != config {
let env = self
.jvm
- .attach_current_thread()
+ .attach_current_thread_as_daemon()
.map_err(Error::AttachJvmToThread)?;
let create_tun_method = env
.get_method_id(
@@ -186,7 +186,7 @@ impl Tun for VpnServiceTun {
fn bypass(&mut self, socket: RawFd) -> Result<(), BoxedError> {
let env = self
.jvm
- .attach_current_thread()
+ .attach_current_thread_as_daemon()
.map_err(|cause| BoxedError::new(Error::AttachJvmToThread(cause)))?;
let create_tun_method = env
.get_method_id(&self.class, "bypass", "(I)Z")