Skip to content
This repository has been archived by the owner on Jan 4, 2019. It is now read-only.

Commit

Permalink
Merge pull request #389 from brave/issue-388
Browse files Browse the repository at this point in the history
don’t handle renderer messages when webcontents is being destroyed
  • Loading branch information
bridiver authored Nov 16, 2017
2 parents 37dad74 + 0122942 commit 222e579
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions atom/browser/api/atom_api_web_contents.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1434,6 +1434,9 @@ void WebContents::DevToolsClosed() {
}

bool WebContents::OnMessageReceived(const IPC::Message& message) {
if (is_being_destroyed_)
return false;

bool handled = true;
IPC_BEGIN_MESSAGE_MAP(WebContents, message)
IPC_MESSAGE_HANDLER(AtomViewHostMsg_Message, OnRendererMessage)
Expand Down

0 comments on commit 222e579

Please sign in to comment.