Skip to content

Commit 0d63383

Browse files
authored
Merge pull request #833 from Yuvix25/ipc-once-memory
Fix huge memory waste in IpcMain.Once [IMPORTANT]
2 parents f31fe19 + 1253df3 commit 0d63383

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ElectronNET.API/IpcMain.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ public void OnSync(string channel, Func<object, object> listener)
117117
public void Once(string channel, Action<object> listener)
118118
{
119119
BridgeConnector.Socket.Emit("registerOnceIpcMainChannel", channel);
120-
BridgeConnector.Socket.On(channel, (args) =>
120+
BridgeConnector.Socket.Once<object>(channel, (args) =>
121121
{
122122
List<object> objectArray = FormatArguments(args);
123123

0 commit comments

Comments
 (0)