Skip to content

Commit

Permalink
Fix messagebox not being raised on all goroutines
Browse files Browse the repository at this point in the history
Fixes #22
  • Loading branch information
optix2000 committed Aug 6, 2021
1 parent a1b76cc commit dfbd27f
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,13 @@ func main() {
if !*noPatch {
wg.Add(1)
go func() {
// Raise an alert box on panic so non-technical users don't lose the output.
defer func() {
r := recover()
if r != nil {
panicBox(r)
}
}()
defer wg.Done()
watchGGST(*noClose)
}()
Expand All @@ -160,6 +167,13 @@ func main() {
if !*noProxy {
wg.Add(1)
go func() {
// Raise an alert box on panic so non-technical users don't lose the output.
defer func() {
r := recover()
if r != nil {
panicBox(r)
}
}()
defer wg.Done()

server := proxy.CreateStriveProxy("127.0.0.1:21611", GGStriveAPIURL, PatchedAPIURL, &proxy.StriveAPIProxyOptions{AsyncStatsSet: *unsafeAsyncStatsSet})
Expand Down

0 comments on commit dfbd27f

Please sign in to comment.