Skip to content

Commit

Permalink
Handle reconnect in profile
Browse files Browse the repository at this point in the history
  • Loading branch information
zachhuff386 committed Mar 27, 2020
1 parent 7c52f79 commit ebf080b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions service/profile/profile.go
Original file line number Diff line number Diff line change
Expand Up @@ -2481,7 +2481,13 @@ func (p *Profile) startWg(timeout bool) (err error) {
}).Error("profile: Request wg connection failed")
err = nil

time.Sleep(3 * time.Second)

if p.connected && !p.stop {
go p.restart()
}
go p.restart()
p.clearStatus(start)
return
}

Expand Down

0 comments on commit ebf080b

Please sign in to comment.