fix: try to fix updater not working (#2294)

Co-authored-by: Himself65 <himself65@outlook.com>
This commit is contained in:
Peng Xiao
2023-05-10 13:40:22 +08:00
committed by GitHub
parent 752d0545ca
commit e4f13ddae4
6 changed files with 37 additions and 19 deletions

View File

@@ -57,6 +57,10 @@ const events: MainIPCEventMap = (() => {
const {
events: eventsMeta,
}: MainExposedMeta = require('../main/exposed-meta');
// NOTE: ui may try to listen to a lot of the same events, so we increase the limit...
ipcRenderer.setMaxListeners(100);
const all = eventsMeta.map(([namespace, eventNames]) => {
const namespaceEvents = eventNames.map(name => {
const channel = `${namespace}:${name}`;