Skip to content

Commit

Permalink
Fix memory warning issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Bunn committed Nov 30, 2024
1 parent 033fa69 commit 0ae71bb
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,11 @@ extension AIChatViewController {

public override func didReceiveMemoryWarning() {
super.didReceiveMemoryWarning()
chatModel.cancelTimer()
removeWebViewController()

if viewIfLoaded?.window == nil {
chatModel.cancelTimer()
removeWebViewController()
}
}
}

Expand Down

0 comments on commit 0ae71bb

Please sign in to comment.