File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ $ cloud-torrent --help
53
53
--version, -v
54
54
55
55
Version:
56
- 0.8.2
56
+ 0.8.3
57
57
58
58
Read more:
59
59
https://github.com/jpillora/cloud-torrent
Original file line number Diff line number Diff line change @@ -144,7 +144,9 @@ func (e *Engine) StartTorrent(infohash string) error {
144
144
}
145
145
t .Started = true
146
146
for _ , f := range t .Files {
147
- f .Started = true
147
+ if f != nil {
148
+ f .Started = true
149
+ }
148
150
}
149
151
if t .t .Info () != nil {
150
152
t .t .DownloadAll ()
@@ -164,7 +166,9 @@ func (e *Engine) StopTorrent(infohash string) error {
164
166
t .t .Drop ()
165
167
t .Started = false
166
168
for _ , f := range t .Files {
167
- f .Started = false
169
+ if f != nil {
170
+ f .Started = false
171
+ }
168
172
}
169
173
return nil
170
174
}
You can’t perform that action at this time.
0 commit comments