From 3f5bf6c2408b8bb049c1a980120184c5f1642397 Mon Sep 17 00:00:00 2001 From: "Sascha L. Teichmann" Date: Mon, 9 Mar 2015 14:32:14 +0100 Subject: [PATCH] Start with empty player list. --- cmd/mtwebmapper/players.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/mtwebmapper/players.go b/cmd/mtwebmapper/players.go index 8a9ca92..323b11f 100644 --- a/cmd/mtwebmapper/players.go +++ b/cmd/mtwebmapper/players.go @@ -40,7 +40,7 @@ type players struct { } func newPlayers(fifo string, wsf *websocketForwarder) *players { - return &players{fifo: fifo, wsf: wsf} + return &players{fifo: fifo, wsf: wsf, pls: []*player{}} } func (p *player) MarshalJSON() ([]byte, error) {