Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion proton/vpn/cli/core/controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -479,7 +479,10 @@ async def connect(
raise
except (TimeoutError, VPNConnectionError):
# If the connection fails, clean up NM setup
await self.disconnect()
try:
await self.disconnect()
except TimeoutError:
pass # kill switch cleanup timed out, nothing more we can do

connection_state = None
if isinstance(connector.current_state, states.Connected):
Expand Down