Inlineable `(*Torrent).Seeding()` (#626)
This commit is contained in:
parent
e105d8b57a
commit
ebb7160599
7
t.go
7
t.go
|
@ -124,10 +124,11 @@ func (t *Torrent) SubscribePieceStateChanges() *pubsub.Subscription {
|
|||
|
||||
// Returns true if the torrent is currently being seeded. This occurs when the
|
||||
// client is willing to upload without wanting anything in return.
|
||||
func (t *Torrent) Seeding() bool {
|
||||
func (t *Torrent) Seeding() (ret bool) {
|
||||
t.cl.lock()
|
||||
defer t.cl.unlock()
|
||||
return t.seeding()
|
||||
ret = t.seeding()
|
||||
t.cl.unlock()
|
||||
return
|
||||
}
|
||||
|
||||
// Clobbers the torrent display name if metainfo is unavailable.
|
||||
|
|
Loading…
Reference in New Issue