Skip to content

Commit

Permalink
Remove data synchronously; fix #48
Browse files Browse the repository at this point in the history
  • Loading branch information
cenkalti committed Dec 10, 2021
1 parent 6473c39 commit a38747f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion torrent/session.go
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ func (s *Session) GetTorrent(id string) *Torrent {
func (s *Session) RemoveTorrent(id string) error {
t, err := s.removeTorrentFromClient(id)
if t != nil {
go func() { _ = s.stopAndRemoveData(t) }()
err = s.stopAndRemoveData(t)
}
return err
}
Expand Down

0 comments on commit a38747f

Please sign in to comment.