jfcameron/jfc-nordvpn_icon

A way to abort a connection attempt when connecting/reconnecting is taking too long

jfcameron opened this issue · 1 comments

Problem:
Occasionally the nordvpn cli can stall this gui program during connects. If you run the connect command and the server isnt responding, the cli program's behaviour is to wait until the dameon has successfully connected, which can take tens of minutes. Since this GUI program is single threaded, the thread gets caught in the run_command function for all this time, making the drop menu and tooltip window completely unresponsive.

As a user I would like:
the connect/disconnect GUI to continue to be interactable while connecting, the status tooltip to continue to update.

Description of the solution:
move connect calls to a subprocess. If the user presses "connect" and a connect subprocess already exists, terminate it

fixed in f331310