]> khamidou — GitHub mirrors - electron.git/commit
Don't send ATOM_BROWSER_DEREFERENCE message if context is already gone.
authorCheng Zhao <zcbenz@gmail.com>
Sat, 4 May 2013 15:00:57 +0000 (23:00 +0800)
committerCheng Zhao <zcbenz@gmail.com>
Sat, 4 May 2013 15:00:57 +0000 (23:00 +0800)
commitd377cbfa744f770c93f62ea6d53e175d90d07de7
treed89ba7afc766411eefe3afbf6e103d3c67a4633e
parent35441ad8fba0d6808ac320a67a21631fbcedaef7
Don't send ATOM_BROWSER_DEREFERENCE message if context is already gone.

It's possible that the object gets destructed after reloading, however
since we already released all objects in browser when unloading, it
would cause troubles when sending message in an unexist context. We just
rely on the closure to mark whether the context is gone.

A more suitable solution, however, is to restart renderer process when
doing reloading.
renderer/api/lib/remote.coffee