Merge pull request #921 from softworkz/submit_missing_locks

SocketIOFacade: Add missing locking on .Off calls
This commit is contained in:
Florian Rappl
2025-11-10 22:27:02 +01:00
committed by GitHub

View File

@@ -86,7 +86,7 @@ internal class SocketIoFacade
{
_socket.On(eventName, _ =>
{
_socket.Off(eventName);
this.Off(eventName);
Task.Run(action);
});
}
@@ -98,7 +98,7 @@ internal class SocketIoFacade
{
_socket.On(eventName, (socketIoResponse) =>
{
_socket.Off(eventName);
this.Off(eventName);
Task.Run(() => action(socketIoResponse.GetValue<T>()));
});
}