Commit 5f3f5f06 authored by Matt Joiner's avatar Matt Joiner
Browse files

Fix nil run in announce

parent 88ef32eb
......@@ -292,7 +292,7 @@ func (a *Announce) beginGetPeers(tx *stm.Tx) {
addr := first.(addrMaybeId).Addr
tx.Set(a.nodesPendingContact, npc.Delete(first))
if !a.shouldContact(addr, tx) {
tx.Return(txResT{run: func() {}})
cteh := a.server.config.ConnectionTracking.Allow(tx, a.server.connTrackEntryForAddr(NewAddr(addr.UDP())), "announce get_peers", -1)
tx.Assert(cteh != nil)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment