Start with empty player list.

This commit is contained in:
Sascha L. Teichmann 2015-03-09 14:32:14 +01:00
parent 5d7b910a4d
commit 3f5bf6c240

View File

@ -40,7 +40,7 @@ type players struct {
} }
func newPlayers(fifo string, wsf *websocketForwarder) *players { 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) { func (p *player) MarshalJSON() ([]byte, error) {