Can't send to torrentFinished while handling an event

This commit is contained in:
Matt Joiner 2013-09-29 04:04:46 +10:00
parent b4989a370f
commit 805897afb5
1 changed files with 3 additions and 1 deletions

View File

@ -192,7 +192,9 @@ func (me *client) pieceHashed(ih infoHash, piece int, correct bool) {
return
}
}
me.torrentFinished <- ih
go func() {
me.torrentFinished <- ih
}()
}
func (me *client) run() {