summaryrefslogtreecommitdiff
path: root/src/leap/eip
diff options
context:
space:
mode:
Diffstat (limited to 'src/leap/eip')
-rw-r--r--src/leap/eip/openvpnconnection.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/leap/eip/openvpnconnection.py b/src/leap/eip/openvpnconnection.py
index 859378c0..07bc628a 100644
--- a/src/leap/eip/openvpnconnection.py
+++ b/src/leap/eip/openvpnconnection.py
@@ -176,7 +176,7 @@ to be triggered for each one of them.
logger.debug('no openvpn instance found.')
- def cleanup(self):
+ def cleanup(self, shutdown=False):
"""
terminates openvpn child subprocess
"""
@@ -201,7 +201,8 @@ to be triggered for each one of them.
'cannot terminate subprocess! Retcode %s'
'(We might have left openvpn running)' % RETCODE)
- self.cleanup_tempfiles()
+ if shutdown:
+ self.cleanup_tempfiles()
def cleanup_tempfiles(self):
"""