fix: activate the uv_loop on incoming IPC messages (#19449)

This commit is contained in:
Samuel Attard 2019-07-25 13:10:14 -07:00 committed by GitHub
parent 0f5cb7995f
commit 8028c57b42
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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