Skip to content

Commit

Permalink
Add keepAlive to auth's IsOnline branch
Browse files Browse the repository at this point in the history
  • Loading branch information
duskmoon314 committed Mar 27, 2024
1 parent 59825e5 commit d0b9776
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cli/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,9 @@ func authUtil(c *cli.Context, logout bool) error {
}
if online && !logout {
logger.Infof("Currently online!")
if settings.KeepOn {
return keepAliveLoop(c, true)
}
return nil
} else if !online && logout {
logger.Infof("Currently offline!")
Expand Down

0 comments on commit d0b9776

Please sign in to comment.