Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Call manual shared client ready and disconnect callback on separate threads #8

@ungive

Description

@ungive

The manual calls to the shared client's ready and disconnect callbacks should be executed on another thread, not on the thread that called start() or stop(), since that is how the normal client works too. Calling these on the caller's thread may lead to deadlocks when a lock is held in the caller's thread and is acquired again in the ready or disconnect callback.

See:

g_state.on_ready.call(m_client, m_index);

g_state.on_disconnect.call(m_client, m_index);

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions