Skip to content

Commit

Permalink
fix: Fix download followed_by not being reset properly when updating
Browse files Browse the repository at this point in the history
  • Loading branch information
pawamoy committed Mar 29, 2020
1 parent e672103 commit 19510a7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/aria2p/downloads.py
Expand Up @@ -208,9 +208,10 @@ def update(self) -> None:
self._files = []
self._name = None
self._bittorrent = None
self._followed_by = []
self._followed_by = None
self._following = None
self._belongs_to = None
self._options = None

@property
def live(self) -> "Download":
Expand Down
1 change: 0 additions & 1 deletion tests/test_downloads.py
Expand Up @@ -166,7 +166,6 @@ def test_followed_by(self):
with Aria2Server(port=7400) as server:
self.download.api = server.api
assert self.download.followed_by == []
assert self.download.followed_by == []

def test_followed_by_ids(self):
with Aria2Server(port=7401) as server:
Expand Down

0 comments on commit 19510a7

Please sign in to comment.