diff options
author | kali <kali@leap.se> | 2012-11-28 03:01:53 +0900 |
---|---|---|
committer | kali <kali@leap.se> | 2012-11-28 03:02:19 +0900 |
commit | 564b82fa30ebcd8a0abfea54e00506dd77446a54 (patch) | |
tree | 27e594233eff749f928cb503e3d4a9920aa08062 /src/leap/eip/openvpnconnection.py | |
parent | eec567a0a26edddb30b15ea4ef67f042c160d5ba (diff) | |
parent | a3ce61ea54b0b0f5c1ecd5904379e27cfec885b5 (diff) |
Merge branch 'feature/catch-ctrl-c' into develop
Closes #760
Diffstat (limited to 'src/leap/eip/openvpnconnection.py')
-rw-r--r-- | src/leap/eip/openvpnconnection.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/leap/eip/openvpnconnection.py b/src/leap/eip/openvpnconnection.py index 85874cfd..859378c0 100644 --- a/src/leap/eip/openvpnconnection.py +++ b/src/leap/eip/openvpnconnection.py @@ -390,9 +390,14 @@ to be triggered for each one of them. """ logger.debug("disconnecting...") if self.connected(): - self._send_command("signal SIGTERM\n") + try: + self._send_command("signal SIGTERM\n") + except socket.error: + logger.warning('management socket died') + return if self.subp: + # ??? return True #shutting openvpn failured |