Skip to content

Commit

Permalink
torent close printer
Browse files Browse the repository at this point in the history
  • Loading branch information
mh0lt committed Jul 4, 2024
1 parent d04dc67 commit 5f75929
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions torrent.go
Original file line number Diff line number Diff line change
Expand Up @@ -1062,6 +1062,8 @@ func (t *Torrent) numPiecesCompleted(lock bool) (num pieceIndex) {
}

func (t *Torrent) close(wg *sync.WaitGroup) (err error) {
fmt.Println("CLOSE", t.Name())
defer fmt.Println("CLOSE", "DONE", t.Name())
if !t.closed.Set() {
err = errors.New("already closed")
return
Expand Down

0 comments on commit 5f75929

Please sign in to comment.