Forbid using protocol module before app is ready, fixes #661
This commit is contained in:
parent
c0cd8fca80
commit
9ed6ad8165
2 changed files with 11 additions and 13 deletions
|
@ -1,3 +1,6 @@
|
|||
app = require 'app'
|
||||
throw new Error('Can not initialize protocol module before app is ready') unless app.isReady()
|
||||
|
||||
protocol = process.atomBinding('protocol').protocol
|
||||
EventEmitter = require('events').EventEmitter
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue