summaryrefslogtreecommitdiff
path: root/src/state.go
diff options
context:
space:
mode:
authorjwijenbergh <jeroenwijenbergh@protonmail.com>2022-03-25 11:36:04 +0100
committerjwijenbergh <jeroenwijenbergh@protonmail.com>2022-03-25 11:36:04 +0100
commitd033c8bb4103179b4971b5b067d9c440f254bdd7 (patch)
tree7799d16e0cd9c9b6b2985f0b847c8f6881739a66 /src/state.go
parent9f44f46a4cbf6857560acf567e2c0e93bd39012d (diff)
Run callback in a goroutine for oauth initialized
Diffstat (limited to 'src/state.go')
-rw-r--r--src/state.go2
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 {