Peex icon indicating copy to clipboard operation
Peex copied to clipboard

Editing session while querying causes deadlock

Open RoyalMCPE opened this issue 3 years ago • 2 comments

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.

RoyalMCPE avatar Aug 17 '22 17:08 RoyalMCPE

Sorry, I did not see this. I am aware that this happens at the moment, and I will be changing some things around to fix this in the future.

andreashgk avatar Nov 24 '22 20:11 andreashgk

Any updates @AndreasHGK?

didntpot avatar Jun 18 '23 07:06 didntpot