Skip to content

Commit f1cb43a

Browse files
committed
fix(dht): this method cannot run in a goroutine because msg is shared
1 parent e358bca commit f1cb43a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dht/mainline/indexingService.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ func (is *IndexingService) onSampleInfohashesResponse(msg *Message, addr *net.UD
184184
t := toBigEndianBytes(is.counter)
185185
msg.T = t[:]
186186

187-
go is.protocol.SendMessage(msg, addr)
187+
is.protocol.SendMessage(msg, addr)
188188

189189
is.getPeersRequests[t] = infoHash
190190
is.counter++

0 commit comments

Comments
 (0)