Browse Source

Comment fixes.

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

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

@ -268,7 +268,7 @@ func (c *Connection) writePump() {
} }
} }
// Write ping message // Write ping message.
func (c *Connection) ping() error { func (c *Connection) ping() error {
log.Println("Sending ping", c.Idx) log.Println("Sending ping", c.Idx)
defer func() { defer func() {

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

@ -227,7 +227,7 @@ func (h *Hub) broadcastHandler(m *MessageRequest) {
} }
ec, ok := h.connectionTable[id] ec, ok := h.connectionTable[id]
if !ok { if !ok {
// Connection gone // Connection gone.
h.mutex.RUnlock() h.mutex.RUnlock()
continue continue
} }

Loading…
Cancel
Save