mirror of
https://bitbucket.org/s_l_teichmann/mtsatellite
synced 2024-11-16 15:20:20 +01:00
Start with empty player list.
This commit is contained in:
parent
5d7b910a4d
commit
3f5bf6c240
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user