Fix crash when using protocol module on startup.
The job factory was not created before any request was sent, so when the app used the protocol module on startup it would cause a crash.
This commit is contained in:
parent
c908cae72c
commit
92e157de30
2 changed files with 8 additions and 0 deletions
|
@ -35,6 +35,9 @@ app.on('window-all-closed', function() {
|
|||
});
|
||||
|
||||
app.on('finish-launching', function() {
|
||||
// Test if using protocol module would crash.
|
||||
require('protocol').registerProtocol('test-if-crashes', function() {});
|
||||
|
||||
window = new BrowserWindow({
|
||||
title: 'atom-shell tests',
|
||||
show: false,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue