]> Sergey Matveev's repositories - btrtrc.git/commitdiff
dht-get-peers: Don't bother to close the server before quitting
authorMatt Joiner <anacrolix@gmail.com>
Fri, 19 Dec 2014 23:11:34 +0000 (10:11 +1100)
committerMatt Joiner <anacrolix@gmail.com>
Fri, 19 Dec 2014 23:11:34 +0000 (10:11 +1100)
The closing code isn't very clean yet, and it's unnecessary.

cmd/dht-get-peers/main.go

index fa6b5dc8508539e9e80e69a7d2e9275f63ac0f33..b2b679b77aefad60ca508bf307eb3670f9991dd3 100644 (file)
@@ -125,7 +125,6 @@ func setupSignals() {
        go func() {
                <-ch
                close(quitting)
-               s.Close()
        }()
 }