Skip to content

Reconnection causes duplicate "instances" #97

@bertigert-2

Description

@bertigert-2

When losing connection, the disconnected event gets fired multiple times (at least thats what i believe happens). This is ?probably? a bug in the discord-rpc library you are using, but still causes an arbitrary amount of rpc instances to be created (I got 17 at some point).

Image

An easy fix would be to check if the reconnection is already happening.

Also you don't increase the attempt counter on retries.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions