Compare commits

..

No commits in common. "d256235c1b927e1f873fc45c1bf5d50d6ee449df" and "26ca4d8b9379b421cab02720170531a22352635b" have entirely different histories.

3 changed files with 3 additions and 3 deletions

View file

@ -1,3 +1,3 @@
package metadata
const GoTomatoVersion = "v0.0.2" // The GoTomato Version
const GoTomatoVersion = "v0.0.1" // The GoTomato Version

View file

@ -16,7 +16,7 @@ func handleClientCommands(ws *websocket.Conn) {
_, message, err := ws.ReadMessage()
if err != nil {
log.Printf("Client disconnected from %s (%v) (total: %d)", ws.NetConn().RemoteAddr(), err, len(Clients)-1)
log.Printf("Client disconnected from %s (%v)", ws.NetConn().RemoteAddr(), err)
delete(Clients, ws)
break
}

View file

@ -27,7 +27,7 @@ func HandleConnections(w http.ResponseWriter, r *http.Request) {
}
defer ws.Close()
log.Printf("Client connected from %v (total: %d)", ws.NetConn().RemoteAddr(), len(Clients)+1)
log.Printf("Client connected from %v", ws.NetConn().RemoteAddr())
// Register the new client
mu.Lock()