Skip to content

Commit

Permalink
Add missing instance unlock
Browse files Browse the repository at this point in the history
When using the apteryx mainloop from lua directly (not via Alfred) the
instance must be unlocked to hand control of the state over to the
library to use.
  • Loading branch information
blairsteven authored and carlgsmith committed Jan 22, 2024
1 parent 9560ae1 commit eeb38a0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lua.c
Original file line number Diff line number Diff line change
Expand Up @@ -1102,6 +1102,7 @@ lua_apteryx_mainloop (lua_State *L)
}

running = true;
lua_apteryx_instance_unlock (L);
while (running && fd >= 0)
{
g_L = L;
Expand Down

0 comments on commit eeb38a0

Please sign in to comment.