]> Sergey Matveev's repositories - btrtrc.git/commitdiff
Fix #47
authorMatt Joiner <anacrolix@gmail.com>
Tue, 22 Dec 2015 16:31:39 +0000 (03:31 +1100)
committerMatt Joiner <anacrolix@gmail.com>
Tue, 22 Dec 2015 16:31:39 +0000 (03:31 +1100)
Forgot to remove a non-deferred sync.Mutex.Unlock

dht/announce.go

index b416df9f9446d8e1c57cfeaea0be925eb9e267cb..aa964eb7ed4abd8ff1453ce0e5f5c419088f0cef 100644 (file)
@@ -155,7 +155,6 @@ func (me *Announce) maybeAnnouncePeer(to dHTAddr, token, peerId string) {
                }
        }
        err := me.server.announcePeer(to, me.infoHash, me.announcePort, token, me.announcePortImplied)
-       me.server.mu.Unlock()
        if err != nil {
                logonce.Stderr.Printf("error announcing peer: %s", err)
        }