OSDN Git Service
(root)
/
bytom
/
bytom.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5b747a9
)
fix #883: remove unused code
author
freewind
<nowindlee@gmail.com>
Mon, 21 May 2018 13:33:38 +0000
(21:33 +0800)
committer
freewind
<nowindlee@gmail.com>
Mon, 21 May 2018 13:33:38 +0000
(21:33 +0800)
p2p/listener.go
patch
|
blob
|
history
diff --git
a/p2p/listener.go
b/p2p/listener.go
index
4844a2c
..
a81abbe
100644
(file)
--- a/
p2p/listener.go
+++ b/
p2p/listener.go
@@
-167,9
+167,6
@@
func (l *DefaultListener) listenRoutine() {
// Cleanup
close(l.connections)
- for _ = range l.connections {
- // Drain
- }
}
//Connections a channel of inbound connections. It gets closed when the listener closes.