Skip to content

Refactor friend request acceptance to async#4

Closed
seer-by-sentry[bot] wants to merge 1 commit intomainfrom
seer/refactor/async-friend-acceptance
Closed

Refactor friend request acceptance to async#4
seer-by-sentry[bot] wants to merge 1 commit intomainfrom
seer/refactor/async-friend-acceptance

Conversation

@seer-by-sentry
Copy link

Fixes SERVICES-2E. The issue was that: Unawaited async task in SocialController.HelperFunction_AcceptFriendRequest causes NullReferenceException when sourceData is null due to race condition with user session disconnection.

  • Made HelperFunction_AcceptFriendRequest asynchronous to support non-blocking operations.
  • Updated all calls to HelperFunction_AcceptFriendRequest to correctly await its completion.
  • Implemented asynchronous database operations for removing pending requests and creating friendships.
  • Added real-time WebSocket notifications to inform users about friend status changes and request acceptance.
  • Included basic exception handling within the friend acceptance logic to prevent unobserved task exceptions.

This fix was generated by Seer in Sentry, triggered by x64-dev. 👁️ Run ID: 10517292

Not quite right? Click here to continue debugging with Seer.

@seer-by-sentry seer-by-sentry bot requested a review from x64-dev February 20, 2026 23:59
@x64-dev x64-dev closed this Feb 21, 2026
@x64-dev x64-dev deleted the seer/refactor/async-friend-acceptance branch February 21, 2026 03:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant