Browse Source

Do not initialize queue with fixed size.

pull/4/head
Simon Eisenmann 12 years ago
parent
commit
2be499c346
  1. 2
      src/app/spreed-speakfreely-server/connection.go

2
src/app/spreed-speakfreely-server/connection.go

@ -81,7 +81,7 @@ func NewConnection(h *Hub, ws *websocket.Conn, remoteAddr string) *Connection { @@ -81,7 +81,7 @@ func NewConnection(h *Hub, ws *websocket.Conn, remoteAddr string) *Connection {
RemoteAddr: remoteAddr,
}
c.condition = sync.NewCond(&c.mutex)
c.queue = make([][]byte, 0, queueSize)
c.queue = make([][]byte, 0)
return c

Loading…
Cancel
Save