update go-peerstream to newest version
License: MIT Signed-off-by: Jeromy <jeromyj@gmail.com>
Jeromy committed
Sep 15, 2015 at 16:09 UTC
973c5fa0a4f7178d7ee4a0c6eb4f40ea22380690
2 files changed
+3
-1
Godeps/Godeps.json
+1
-1
@@ -167,7 +167,7 @@
167
},
168
{
169
"ImportPath": "github.com/jbenet/go-peerstream",
170
- "Rev": "214e6057e1c0742c0b5f9bb3060e88dea32a4380"
170
+ "Rev": "cfdc29a19c1a209d548670f5c33c5cda2e040143"
171
},
172
{
173
"ImportPath": "github.com/jbenet/go-random",
Godeps/_workspace/src/github.com/jbenet/go-peerstream/swarm.go
+2
@@ -323,6 +323,8 @@ func (s *Swarm) StreamsWithGroup(g Group) []*Stream {
323
324
// Close shuts down the Swarm, and it's listeners.
325
func (s *Swarm) Close() error {
326
+ defer close(s.closed)
327
+
328
// automatically close everything new we get.
329
s.SetConnHandler(func(c *Conn) { c.Close() })
330
s.SetStreamHandler(func(s *Stream) { s.Close() })