Skip to content

Commit

Permalink
Moved deinitialize call
Browse files Browse the repository at this point in the history
  • Loading branch information
michalrentka committed Sep 12, 2024
1 parent cf2f8cf commit 450ed7e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,6 @@ class HtmlEpubDocumentViewController: UIViewController {
}
}

deinit {
viewModel.process(action: .deinitialiseReader)
}

// MARK: - Actions

private func process(state: HtmlEpubReaderState) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,7 @@ class HtmlEpubReaderViewController: UIViewController, ParentWithSidebarControlle
}

deinit {
viewModel.process(action: .deinitialiseReader)
DDLogInfo("HtmlEpubReaderViewController deinitialized")
}

Expand Down

0 comments on commit 450ed7e

Please sign in to comment.