Skip to content

Fix WebSocketScope.getListeners#405

Merged
mondain merged 1 commit intoRed5:mainfrom
kdkd:cherry-pick-87fdaef-20251126-133328
Nov 26, 2025
Merged

Fix WebSocketScope.getListeners#405
mondain merged 1 commit intoRed5:mainfrom
kdkd:cherry-pick-87fdaef-20251126-133328

Conversation

@kdkd
Copy link
Copy Markdown

@kdkd kdkd commented Nov 26, 2025

Commit from kdkd fork 87fdaef

/net/websocket/WebSocketScope.java: attempted to detect an existing listener with listener.getClass().isInstance(clazz), but isInstance expects an object, not a Class. This always returned false, so listeners were never detected. As a result, code that relies on this check (e.g., avoiding duplicate registration or verifying protocol handler availability) silently failed. Check adjusted to match function return type.


…istener

    with listener.getClass().isInstance(clazz), but isInstance expects an
    object, not a Class.  This always returned false, so listeners were never
    detected.  As a result, code that relies on this check (e.g., avoiding
    duplicate registration or verifying protocol handler availability)
    silently failed. Check adjusted to match function return type.
@mondain mondain merged commit 46a9737 into Red5:main Nov 26, 2025
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.

2 participants