We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 55a5d7e commit 09dfc9bCopy full SHA for 09dfc9b
src/state/raw.rs
@@ -388,11 +388,6 @@ impl RawLua {
388
389
unsafe extern "C-unwind" fn hook_proc(state: *mut ffi::lua_State, ar: *mut ffi::lua_Debug) {
390
let extra = ExtraData::get(state);
391
- if (*extra).hook_thread != state {
392
- // Hook was destined for a different thread, ignore
393
- ffi::lua_sethook(state, None, 0, 0);
394
- return;
395
- }
396
let result = callback_error_ext(state, extra, move |extra, _| {
397
let hook_cb = (*extra).hook_callback.clone();
398
let hook_cb = mlua_expect!(hook_cb, "no hook callback set in hook_proc");
0 commit comments