diff options
| author | Janito Vaqueiro Ferreira Filho <janito@mullvad.net> | 2018-05-04 15:29:04 -0300 |
|---|---|---|
| committer | Janito Vaqueiro Ferreira Filho <janito@mullvad.net> | 2018-05-07 08:55:03 -0300 |
| commit | 02f76355d339166d259c60420358e35553753c35 (patch) | |
| tree | dce3e3e96d778d0bf3a2b63efe8429cc07220380 /talpid-openvpn-plugin/src | |
| parent | 083fa2b11bb3ac32e62ecabe4a66ab4c1a94d68c (diff) | |
| download | mullvadvpn-02f76355d339166d259c60420358e35553753c35.tar.xz mullvadvpn-02f76355d339166d259c60420358e35553753c35.zip | |
Borrow server ID instead of moving it
Diffstat (limited to 'talpid-openvpn-plugin/src')
| -rw-r--r-- | talpid-openvpn-plugin/src/lib.rs | 2 | ||||
| -rw-r--r-- | talpid-openvpn-plugin/src/processing.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/talpid-openvpn-plugin/src/lib.rs b/talpid-openvpn-plugin/src/lib.rs index f1c210b4d1..71c332a212 100644 --- a/talpid-openvpn-plugin/src/lib.rs +++ b/talpid-openvpn-plugin/src/lib.rs @@ -66,7 +66,7 @@ fn openvpn_open( let core_server_id = parse_args(&args)?; info!("Connecting back to talpid core at {}", core_server_id); - let processor = EventProcessor::new(core_server_id).chain_err(|| ErrorKind::InitHandleFailed)?; + let processor = EventProcessor::new(&core_server_id).chain_err(|| ErrorKind::InitHandleFailed)?; Ok((INTERESTING_EVENTS.to_vec(), processor)) } diff --git a/talpid-openvpn-plugin/src/processing.rs b/talpid-openvpn-plugin/src/processing.rs index 5fc2a1312e..a376665888 100644 --- a/talpid-openvpn-plugin/src/processing.rs +++ b/talpid-openvpn-plugin/src/processing.rs @@ -18,7 +18,7 @@ pub struct EventProcessor { } impl EventProcessor { - pub fn new(server_id: IpcServerId) -> Result<EventProcessor> { + pub fn new(server_id: &IpcServerId) -> Result<EventProcessor> { trace!("Creating EventProcessor"); let ipc_client = WsIpcClient::connect(server_id).chain_err(|| "Unable to create IPC client")?; |
