summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/thread.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/thread.rs b/src/thread.rs
index 7ff2138..7178215 100644
--- a/src/thread.rs
+++ b/src/thread.rs
@@ -344,7 +344,7 @@ where
#[inline(always)]
fn is_poll_pending(val: &MultiValue) -> bool {
match val.iter().enumerate().last() {
- Some((1, Value::LightUserData(ud))) => {
+ Some((0, Value::LightUserData(ud))) => {
ud.0 == &ASYNC_POLL_PENDING as *const u8 as *mut c_void
}
_ => false,