mirror of
https://github.com/ElectronNET/Electron.NET.git
synced 2026-02-03 21:25:13 +00:00
IpcMain.RemoveAllListeners(string) is not removing the listeners #447
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @LandinMartensIQ on GitHub (Jan 29, 2020).
Originally assigned to: @GregorBiswanger on GitHub.
In the C# lib,
IpcMain.RemoveAllListeners(string)is not removing the listeners. After executing this function, my event listeners are still firing.Steps to Reproduce:
IpcMain.On(channel_name)@GregorBiswanger commented on GitHub (Apr 20, 2020):
I tested it with the current version and there were no problems. Possibly. your code will not be executed with RemoveAllListeners or it is due to the new Electron 8 version. Our latest update in version 8.31.1 will be released in the next few days.
@dlamon1 commented on GitHub (Dec 23, 2021):
Did you find a solution to your problem? I am having the same issue.
@ghost commented on GitHub (Dec 31, 2021):
I have the same problem, I have electron and React and when you are using the app for a log time it becomes slow because the number of imports using ipc renderer. I tried to remove al listeners but it continues sending requests.