Skip to content

Commit

Permalink
fix scan cancel
Browse files Browse the repository at this point in the history
  • Loading branch information
willmcgugan committed Feb 16, 2024
1 parent 0ff9855 commit 47682f9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "toolong"
version = "1.1.3"
version = "1.1.4"
description = "A terminal log file viewer / tailer / analyzer"
authors = ["Will McGugan <[email protected]>"]
license = "MIT"
Expand Down
5 changes: 1 addition & 4 deletions src/toolong/log_lines.py
Original file line number Diff line number Diff line change
Expand Up @@ -336,10 +336,7 @@ def run_scan(self, save_merge: str | None = None) -> None:
line_count += len(breaks)
if worker.is_cancelled:
break
else:
self.post_message(ScanComplete(size, position))
return
self.post_message(ScanComplete(size, 0))
self.post_message(ScanComplete(size, position))

def merge_log_files(self) -> None:
worker = get_current_worker()
Expand Down

0 comments on commit 47682f9

Please sign in to comment.