diff options
| author | jwijenbergh <jeroenwijenbergh@protonmail.com> | 2022-03-25 11:36:04 +0100 |
|---|---|---|
| committer | jwijenbergh <jeroenwijenbergh@protonmail.com> | 2022-03-25 11:36:04 +0100 |
| commit | d033c8bb4103179b4971b5b067d9c440f254bdd7 (patch) | |
| tree | 7799d16e0cd9c9b6b2985f0b847c8f6881739a66 /src | |
| parent | 9f44f46a4cbf6857560acf567e2c0e93bd39012d (diff) | |
Run callback in a goroutine for oauth initialized
Diffstat (limited to 'src')
| -rw-r--r-- | src/state.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/state.go b/src/state.go index ab4f3fc..fcc5930 100644 --- a/src/state.go +++ b/src/state.go @@ -45,7 +45,7 @@ func (state *VPNState) Connect(url string) (string, error) { return "", authInitializeErr } - state.StateCallback("Registered", "OAuthInitialized", authURL) + go state.StateCallback("Registered", "OAuthInitialized", authURL) oauthErr := state.FinishOAuth() if oauthErr != nil { |
