1
0
Fork 0
mirror of https://github.com/FrankerFaceZ/FrankerFaceZ.git synced 2025-09-15 17:46:55 +00:00

missed error case

This commit is contained in:
Kane York 2016-05-21 11:38:48 -07:00
parent 613d13652f
commit 88b356177a
2 changed files with 7 additions and 2 deletions

View file

@ -16,6 +16,8 @@ import (
"github.com/clarkduvall/hyperloglog" "github.com/clarkduvall/hyperloglog"
) )
var _ = os.Exit
var configLocation = flag.String("config", "./config.json", "Location of the configuration file. Defaults to ./config.json") var configLocation = flag.String("config", "./config.json", "Location of the configuration file. Defaults to ./config.json")
var genConfig = flag.Bool("genconf", false, "Generate a new configuration file.") var genConfig = flag.Bool("genconf", false, "Generate a new configuration file.")
@ -41,8 +43,8 @@ func main() {
allServers[i].Setup(v) allServers[i].Setup(v)
} }
printEveryDay() //printEveryDay()
os.Exit(0) //os.Exit(0)
http.HandleFunc("/api/get", ServeAPIGet) http.HandleFunc("/api/get", ServeAPIGet)
http.ListenAndServe(config.ListenAddr, http.DefaultServeMux) http.ListenAndServe(config.ListenAddr, http.DefaultServeMux)
} }

View file

@ -137,6 +137,9 @@ func C2SHello(conn *websocket.Conn, client *ClientInfo, msg ClientMessage) (rmsg
} else if _, ok := ary[1].(bool); ok { } else if _, ok := ary[1].(bool); ok {
// opt out // opt out
client.ClientID = AnonymousClientID client.ClientID = AnonymousClientID
} else {
err = ErrExpectedTwoStrings
return
} }
uniqueUserChannel <- client.ClientID uniqueUserChannel <- client.ClientID