Skip to content

Commit 09dfc9b

Browse files
committed
global hook
1 parent 55a5d7e commit 09dfc9b

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/state/raw.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -388,11 +388,6 @@ impl RawLua {
388388

389389
unsafe extern "C-unwind" fn hook_proc(state: *mut ffi::lua_State, ar: *mut ffi::lua_Debug) {
390390
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-
}
396391
let result = callback_error_ext(state, extra, move |extra, _| {
397392
let hook_cb = (*extra).hook_callback.clone();
398393
let hook_cb = mlua_expect!(hook_cb, "no hook callback set in hook_proc");

0 commit comments

Comments
 (0)