Branch: refs/heads/master
Home: https://github.com/conformal/btcwallet
Commit: 19fd6406e85a28a823b7ff440f95d4a8609f0c32
https://github.com/conformal/btcwallet/commit/19fd6406e85a28a823b7ff440f95d4a8609f0c32
Author: Josh Rickmar <[email protected]>
Date: 2014-03-20 (Thu, 20 Mar 2014)
Changed paths:
M sockets.go
Log Message:
-----------
Prevent a send on closed chan panic.
The select statement does not guarantee selecting a better case if one
might panic for sending to a closed channel. This case was hit during
client disconnect due to having multiple senders on a single channel
with one of the senders closing the chan to notify the next goroutine
to finish. This change gives each writes its own unique channel to
prevent this error.