Skip to content

Commit

Permalink
nil spec err
Browse files Browse the repository at this point in the history
  • Loading branch information
ucwong committed Jun 27, 2024
1 parent d6db6e6 commit b7c232b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions backend/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -500,6 +500,8 @@ func (tm *TorrentManager) addInfoHash(ih string, bytesRequested int64) *caffe.To
func (tm *TorrentManager) injectSpec(ih string, spec *torrent.TorrentSpec) (*torrent.Torrent, error) {
if spec != nil {
spec.Trackers = tm.trackers
} else {
return nil, errors.New("Nil spec")
}

if t, _, err := tm.client.AddTorrentSpec(spec); err == nil {
Expand Down

0 comments on commit b7c232b

Please sign in to comment.