Skip to content

Editing session while querying causes deadlock #1

@RoyalMCPE

Description

@RoyalMCPE

Calling InsertComponent or similar that add/remove components from the session while querying causes a deadlock.

This seems to be due to the (query)[https://github.com/AndreasHGK/Peex/blob/14262052507231a0fa059e55837d584da6e12a8d/session.go#L156] calling unlock on defer rather than before the passed function is called.

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