Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jul 11th, 2012  |  syntax: None  |  size: 0.52 KB  |  hits: 12  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. diff --git a/src/util/util.go b/src/util/util.go
  2. index 0a60e45..a55de0c 100644
  3. --- a/src/util/util.go
  4. +++ b/src/util/util.go
  5. @@ -39,6 +39,7 @@ func MsgBuffer(ch chan core.Msg) chan core.Msg {
  6.                  if msg != nil {
  7.                      buf = append(buf, next) // Save in queue
  8.                  } else if len(buf) > 0 {
  9. +                    buf = append(buf, next)
  10.                      msg = buf[0] // Buf has messages, pop the next in queue
  11.                      buf = buf[1:len(buf)]
  12.                  } else {