@@ -6,7 +6,7 @@ mod is_null;
6
6
mod problem_report;
7
7
mod talpid_vpn_service;
8
8
9
- use crate :: { daemon_interface:: DaemonInterface } ;
9
+ use crate :: daemon_interface:: DaemonInterface ;
10
10
use jnix:: {
11
11
jni:: {
12
12
objects:: { GlobalRef , JObject , JString , JValue } ,
@@ -18,11 +18,11 @@ use jnix::{
18
18
} ;
19
19
use mullvad_api:: { rest:: Error as RestError , StatusCode } ;
20
20
use mullvad_daemon:: {
21
- cleanup_old_rpc_socket, device, exception_logging, logging, runtime:: new_multi_thread, version, Daemon ,
22
- DaemonCommandChannel ,
21
+ cleanup_old_rpc_socket, device, exception_logging, logging, runtime:: new_multi_thread, version,
22
+ Daemon , DaemonCommandChannel ,
23
23
} ;
24
24
use mullvad_types:: {
25
- account:: { AccountData , PlayPurchase , VoucherSubmission } ,
25
+ account:: { AccountData , VoucherSubmission } ,
26
26
custom_list:: CustomList ,
27
27
settings:: DnsOptions ,
28
28
} ;
@@ -276,7 +276,7 @@ fn spawn_daemon(
276
276
command_channel : DaemonCommandChannel ,
277
277
android_context : AndroidContext ,
278
278
) -> Result < ( ) , Error > {
279
- // let listener = JniEventListener::spawn(env, this).map_err(Error::SpawnJniEventListener)?;
279
+ // let listener = JniEventListener::spawn(env, this).map_err(Error::SpawnJniEventListener)?;
280
280
let daemon_object = env
281
281
. new_global_ref ( * this)
282
282
. map_err ( Error :: CreateGlobalReference ) ?;
@@ -307,7 +307,9 @@ fn spawn_daemon(
307
307
308
308
runtime. block_on ( cleanup_old_rpc_socket ( ) ) ;
309
309
310
- let event_listener = match runtime. block_on ( async { spawn_management_interface ( command_channel. sender ( ) ) } ) {
310
+ let event_listener = match runtime
311
+ . block_on ( async { spawn_management_interface ( command_channel. sender ( ) ) } )
312
+ {
311
313
Ok ( event_listener) => event_listener,
312
314
Err ( error) => {
313
315
let _ = tx. send ( Err ( error) ) ;
@@ -356,7 +358,10 @@ fn spawn_management_interface(
356
358
) -> Result < ManagementInterfaceEventBroadcaster , Error > {
357
359
let ( socket_path, event_broadcaster) = ManagementInterfaceServer :: start ( command_sender)
358
360
. map_err ( |error| {
359
- log:: error!( "{}" , error. display_chain_with_msg( "Unable to start management interface server" ) ) ;
361
+ log:: error!(
362
+ "{}" ,
363
+ error. display_chain_with_msg( "Unable to start management interface server" )
364
+ ) ;
360
365
Error :: SpawnManagementInterface ( error)
361
366
} ) ?;
362
367
@@ -493,7 +498,6 @@ pub extern "system" fn Java_net_mullvad_mullvadvpn_service_MullvadDaemon_shutdow
493
498
}
494
499
}
495
500
496
-
497
501
fn log_request_error ( request : & str , error : & daemon_interface:: Error ) {
498
502
match error {
499
503
daemon_interface:: Error :: Api ( RestError :: Aborted ) => {
0 commit comments