Skip to content

Commit

Permalink
Fix streamfile error
Browse files Browse the repository at this point in the history
  • Loading branch information
shortcutme committed Mar 25, 2016
1 parent 6d222b6 commit f1c9eaf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Peer/Peer.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ def streamFile(self, site, inner_path):
while True: # Read in 512k parts
res = self.request("streamFile", {"site": site, "inner_path": inner_path, "location": location}, stream_to=buff)

if not res: # Error
if not res or "location" not in res: # Error
self.log("Invalid response: %s" % res)
return False

Expand Down

0 comments on commit f1c9eaf

Please sign in to comment.