Skip to content

Commit

Permalink
fix(graphql-api): Fixed that connecting downloads where started again
Browse files Browse the repository at this point in the history
  • Loading branch information
TriPSs committed Sep 21, 2020
1 parent 4d0478d commit 6818bf4
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions apps/graphql-api/src/downloads/downloads.resolver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,12 @@ export class DownloadsResolver {
)
}

// Check if the download is not complete or downloading
if (![TorrentService.STATUS_COMPLETE, TorrentService.STATUS_DOWNLOADING].includes(download.status)) {
// Check if the download is not complete, downloading or connecting
if (![
TorrentService.STATUS_CONNECTING,
TorrentService.STATUS_COMPLETE,
TorrentService.STATUS_DOWNLOADING
].includes(download.status)) {
this.torrentService.startStreaming(download)
}

Expand Down

0 comments on commit 6818bf4

Please sign in to comment.