Skip to content

Commit

Permalink
Fixed incorrect change detection check
Browse files Browse the repository at this point in the history
  • Loading branch information
DuckBoss committed May 25, 2020
1 parent f2213b7 commit cb41de2
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions FileSync/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -269,11 +269,9 @@ def scan_directory_multi(self) -> bool:
job.join()
del jobs, job_manager
self.hash_dict = file_hashes
for change in return_dict:
if not change:
change_detected = True
break

if True in return_dict.values():
change_detected = True
return change_detected

def scan_directory_single(self) -> bool:
Expand Down

0 comments on commit cb41de2

Please sign in to comment.