fix(locators): not waiting until handle is disposed (#8735)

This commit is contained in:
Kai Hao 2021-09-07 17:16:43 +08:00 committed by GitHub
parent 9626b111bc
commit a1f26976b0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -41,7 +41,7 @@ export class Locator implements api.Locator {
try {
return await task(handle, deadline ? deadline - monotonicTime() : 0);
} finally {
handle.dispose();
await handle.dispose();
}
}