Skip to content

Commit a244382

Browse files
Add workaround for web-socket communication
1 parent a82e714 commit a244382

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ElectronNET.API/SocketIOFacade.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ public void Once<T>(string eventName, Action<T> action)
7777
_socket.On(eventName, (socketIoResponse) =>
7878
{
7979
_socket.Off(eventName);
80-
action(socketIoResponse.GetValue<T>());
80+
Task.Run(() => action(socketIoResponse.GetValue<T>()));
8181
});
8282
}
8383

0 commit comments

Comments
 (0)