Skip to content

Bug | EventSubscription cannot unsubscribe token 0 #232

@AnnaSasDev

Description

@AnnaSasDev

Severity

Low

Describe the bug

Subscription token sequence starts at 0, but unsubscribe guard checks m_token != 0, so first subscription never unsubscribes.

Steps to reproduce

  1. Subscribe first handler.
  2. Destroy/move EventSubscription.
  3. Handler remains active.

Expected behavior

First token unsubscribes correctly.

Actual behavior

Stale subscription.

Logs / Error Output

Minimal reproduction

src/InfiniFrame.Native/Utils/Event.h:88
src/InfiniFrame.Native/Utils/Event.h:135

.NET Version

No response

Project Version / Commit

No response

Operating System

No response

Checklist

  • I searched existing issues
  • I can reproduce this consistently
  • I included logs and/or a reproduction

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions