diff options
Diffstat (limited to 'talpid-openvpn-plugin/src/processing.rs')
| -rw-r--r-- | talpid-openvpn-plugin/src/processing.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/talpid-openvpn-plugin/src/processing.rs b/talpid-openvpn-plugin/src/processing.rs index cb2a422138..6a4bfced93 100644 --- a/talpid-openvpn-plugin/src/processing.rs +++ b/talpid-openvpn-plugin/src/processing.rs @@ -71,6 +71,9 @@ impl EventProcessor { .block_on(self.ipc_client.route_predown(details)), other => return Err(Error::UnhandledEvent(other)), }; - response.map(|_| ()).map_err(Error::SendEvent) + match response { + Ok(_) => Ok(()), + Err(e) => Err(Error::SendEvent(Box::new(e))), + } } } |
