Skip to content

Commit

Permalink
chore: revert activation if the uv_loop on incoming IPC messages (#19739
Browse files Browse the repository at this point in the history
)

This reverts commit c0e9761.
  • Loading branch information
Cheng Zhao authored and codebytere committed Aug 14, 2019
1 parent 364e8b1 commit 063bcb6
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions lib/renderer/init.ts
Expand Up @@ -45,12 +45,10 @@ const ipcInternalEmitter = new EventEmitter()
v8Util.setHiddenValue(global, 'ipc', ipcEmitter)
v8Util.setHiddenValue(global, 'ipc-internal', ipcInternalEmitter)

const savedProcess = process
v8Util.setHiddenValue(global, 'ipcNative', {
onMessage (internal: boolean, channel: string, args: any[], senderId: number) {
const sender = internal ? ipcInternalEmitter : ipcEmitter
sender.emit(channel, { sender, senderId }, ...args)
savedProcess.activateUvLoop()
}
})

Expand Down

0 comments on commit 063bcb6

Please sign in to comment.