Skip to content

Commit f3e7d69

Browse files
committed
Add comment in the hope that we don't make this error again
1 parent 58dca4f commit f3e7d69

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/output-flex.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -942,6 +942,8 @@ void output_flex_t::select_relation_members()
942942
return;
943943
}
944944

945+
// We can not use get_mutex_and_call_lua_function() here, because we need
946+
// the mutex to stick around as long as we are looking at the Lua stack.
945947
std::lock_guard<std::mutex> const guard{lua_mutex};
946948
call_lua_function(m_select_relation_members, m_relation_cache.get());
947949

0 commit comments

Comments
 (0)