Skip to content

Commit

Permalink
Handle disabled state sarp (#125)
Browse files Browse the repository at this point in the history
  • Loading branch information
Akshay-Rohatgi authored Aug 7, 2021
1 parent b701e3f commit cb78339
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions cmd/remote.go
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,12 @@ func checkServer() {
failPrint("Remote server returned an error for its status! Your ID is probably wrong.")
sendNotification("Status check failed, TeamID incorrect!")
mc.Connection = false
} else if mc.Conn.ServerStatus == "DISABLED" {
mc.Conn.OverallColor = RED
mc.Conn.OverallStatus = "Remote scoring server is no longer accepting scores."
failPrint("Remote scoring server is no longer accepting scores.")
sendNotification("Remote scoring server is no longer accepting scores.")
mc.Connection = false
} else {
timeStart = time.Now()
mc.Conn.OverallColor = GREEN
Expand Down
2 changes: 1 addition & 1 deletion cmd/utility.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
)

const (
AeacusVersion = "1.8.0"
AeacusVersion = "1.8.3"
ScoringConf = "scoring.conf"
ScoringData = "scoring.dat"
LinuxDir = "/opt/aeacus/"
Expand Down

0 comments on commit cb78339

Please sign in to comment.