Enable the quitAndInstall to be cancelled by beforeunload handler.

This commit is contained in:
Cheng Zhao 2014-02-17 16:25:00 +08:00
parent 07fc2b41af
commit 274c9d04b1
3 changed files with 2 additions and 17 deletions

View file

@ -81,10 +81,8 @@ void AutoUpdater::QuitAndInstall(
const v8::FunctionCallbackInfo<v8::Value>& args) {
AutoUpdater* self = AutoUpdater::Unwrap<AutoUpdater>(args.This());
if (!self->quit_and_install_.is_null()) {
if (!self->quit_and_install_.is_null())
self->quit_and_install_.Run();
self->quit_and_install_.Reset();
}
}
// static