Skip to content

Commit

Permalink
Merge pull request #37 from duskmoon314/keepalive_online
Browse files Browse the repository at this point in the history
Add keepAlive to auth's IsOnline branch
  • Loading branch information
jiegec committed Aug 31, 2024
2 parents f2ba693 + d0b9776 commit f736cbe
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 f736cbe

Please sign in to comment.