OSDN Git Service

fix #883: remove unused code
authorfreewind <nowindlee@gmail.com>
Mon, 21 May 2018 13:33:38 +0000 (21:33 +0800)
committerfreewind <nowindlee@gmail.com>
Mon, 21 May 2018 13:33:38 +0000 (21:33 +0800)
p2p/listener.go

index 4844a2c..a81abbe 100644 (file)
@@ -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.