Skip to content
Commit 1681e855 authored by Maxim Ivanov's avatar Maxim Ivanov
Browse files

Return Lua VM to the pool only after it's error was processed

lua.ApiError contains references to the Lua values,
it is likely unsafe to return VM error originated from
to the pool and then accessing that error.

Returned VM might be snatched by another goroutine, resulting in the
unwanted concurrent access.
parent 73457e01
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment