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

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

No files matched your search

@@ -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}`;