Update lua state when polling futures

This commit is contained in:
Alex Orlenko
2021-05-05 12:37:27 +01:00
parent 5293b8d6d2
commit 5199b02346
+1
View File
@@ -1840,6 +1840,7 @@ impl Lua {
}
let lua = &mut *lua;
lua.state = state;
// Try to get an outer poll waker
let waker_key = &WAKER_REGISTRY_KEY as *const u8 as *const c_void;