Branch: refs/heads/master
  Home:   https://github.com/conformal/btcd
  Commit: da993eb034450af542c4c3606fb17ced18b87f6b
      
https://github.com/conformal/btcd/commit/da993eb034450af542c4c3606fb17ced18b87f6b
  Author: Josh Rickmar <[email protected]>
  Date:   2014-07-25 (Fri, 25 Jul 2014)

  Changed paths:
    M rpcwebsocket.go

  Log Message:
  -----------
  Fix sending of next item in notification queue.

The notification queue used for websocket client notifications had a
bug which caused the next queued item in some situations to not be
sent, but instead send a previously sent item.  This change fixes this
by setting the 'next' variable to the next item which must be
dequeued, if the queue length is non-zero.

This bug did not always manifest itself as if the receiving goroutine
was ready, a queued item could be sent directly to it rather than
waiting in the queue to be sent at a later time.


Reply via email to