Skip to content

Commit

Permalink
fix: Fix API.pause_all, pause only active downloads
Browse files Browse the repository at this point in the history
  • Loading branch information
pawamoy committed Oct 10, 2019
1 parent c7c6260 commit a27ecb2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/aria2p/api.py
Expand Up @@ -415,7 +415,7 @@ def pause_all(self, force=False):
# pause_func = self.client.pause_all
# return pause_func() == "OK"

return all(self.pause(self.get_downloads(), force=force))
return all(self.pause([d for d in self.get_downloads() if d.status in ("active", "waiting")], force=force))

def resume(self, downloads):
"""
Expand Down

0 comments on commit a27ecb2

Please sign in to comment.