Skip to content

Commit

Permalink
Fix black screen issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Vedza committed May 24, 2021
1 parent 1c06c1f commit 75d0fb2
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions sniper.go
Original file line number Diff line number Diff line change
Expand Up @@ -633,7 +633,7 @@ func main() {
_, _ = magenta.Print(time.Now().Format("15:04:05 "))
_, _ = red.Println("[x] Error creating Discord session for "+settings.Tokens.Main+",", err)
time.Sleep(4 * time.Second)
os.Exit(-1) // authedAlts <- "?" + token
os.Exit(-1)
return
}
}(client, ctx)
Expand All @@ -642,7 +642,7 @@ func main() {
_, _ = magenta.Print(time.Now().Format("15:04:05 "))
_, _ = red.Println("[x] Error opening Discord session for "+settings.Tokens.Main+",", err)
time.Sleep(4 * time.Second)
os.Exit(-1) // authedAlts <- "?" + token
os.Exit(-1)
return
}

Expand All @@ -655,7 +655,9 @@ func main() {
}
}()

<-finished
if len(settings.Tokens.Alts) > 0 {
<-finished
}

for {
if user != nil {
Expand Down

0 comments on commit 75d0fb2

Please sign in to comment.