This commit is contained in:
Daniil Gentili 2023-06-22 16:16:17 +02:00
parent 064ef747c1
commit ae2bd550e8
Signed by: danog
GPG Key ID: 8C1BE3B34B230CA7

View File

@ -86,10 +86,7 @@ impl EventLoop {
}
pub fn suspend() {
EVENTLOOP.with_borrow_mut(|c| {
let c = c.as_mut().unwrap();
call_user_func!(c.get_current_suspension).unwrap().try_call_method("suspend", vec![]).unwrap();
});
call_user_func!(Function::try_from_method("\\Revolt\\EventLoop", "getSuspension").unwrap()).unwrap().try_call_method("suspend", vec![]).unwrap();
}
pub fn get_sender(&self) -> Sender<u64> {