Skip to content

obfs4: stop obfs4 client and proxy in a go routine

jkito requested to merge jkito/bitmask-vpn:obfsvpn-close into main

the Stop is blocking and cannot be called concurrently with Start, when for some reason obfs4 client fails to connect and has not yet returned from Start, a call to Stop will block until Start has returned, which makes UI unresponsive for some time

calling it in a separate Go routine works around this issue as we can proceed to stop the openvpn process

Merge request reports

Loading