allow gob spectators to send back Instruction maps

This commit is contained in:
Stephen McQuay 2014-04-26 13:25:30 -07:00
parent ab3586e5aa
commit 39b8a9e5d7

View File

@ -199,7 +199,7 @@ func NewSpectator(id string, ws *websocket.Conn, bw *bandwidth.Bandwidth, encodi
// from spectators.
func (s *Spectator) Recv() {
for {
var msgs interface{}
var msgs map[string]Instruction
err := s.dec.Decode(&msgs)
if err != nil {
log.Printf("%s: %s", s.Id, err)