Fix HasTimeoutHandler
This commit is contained in:
parent
d2fbc1040e
commit
2a780652e1
@ -148,9 +148,9 @@ where
|
||||
#[derive(Debug)]
|
||||
pub struct InProcessHandlers {
|
||||
/// On crash C function pointer
|
||||
crash_handler: *const c_void,
|
||||
pub crash_handler: *const c_void,
|
||||
/// On timeout C function pointer
|
||||
timeout_handler: *const c_void,
|
||||
pub timeout_handler: *const c_void,
|
||||
}
|
||||
|
||||
impl InProcessHandlers {
|
||||
@ -873,7 +873,7 @@ where
|
||||
/// the timeout handler
|
||||
#[inline]
|
||||
fn timeout_handler(&self) -> WaitOrTimerCallback {
|
||||
let func: WaitOrTimerCallback = unsafe { transmute(self.timeout_handler()) };
|
||||
let func: WaitOrTimerCallback = unsafe { transmute(self.handlers.timeout_handler) };
|
||||
func
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user