Skip to content

Commit ae2bd55

Browse files
committed
Cleanup
1 parent 064ef74 commit ae2bd55

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/zend/fibers.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -86,10 +86,7 @@ impl EventLoop {
8686
}
8787

8888
pub fn suspend() {
89-
EVENTLOOP.with_borrow_mut(|c| {
90-
let c = c.as_mut().unwrap();
91-
call_user_func!(c.get_current_suspension).unwrap().try_call_method("suspend", vec![]).unwrap();
92-
});
89+
call_user_func!(Function::try_from_method("\\Revolt\\EventLoop", "getSuspension").unwrap()).unwrap().try_call_method("suspend", vec![]).unwrap();
9390
}
9491

9592
pub fn get_sender(&self) -> Sender<u64> {

0 commit comments

Comments
 (0)