Skip to content

Broker may publish meta events about wrong URIs #2131

@DZabavchik

Description

@DZabavchik

Broker.detach() may publish wamp.subscription.on_delete about a wrong URI (one that still has subscribers)

Local variable capture when self._reactor.callLater(0, _publish, subscription) used from a loop is passing last value of those locals.

This needs to be refactored to pass local vars to call_later as arguments:

self._reactor.callLater(0, _publish, subscription, was_subscribed, was_deleted, was_last_subscriber...)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions