Closed tegefaulkes closed 10 months ago
This should've never been merged into staging
// Wait for server and client to timeout by checking the flag
await new Promise<void>((resolve) => {
const checkFlag = () => {
if (serverTimedOut && clientTimedOut) resolve();
else setTimeout(() => checkFlag(), 10);
};
checkFlag();
});
I've removed it along with some other related code.
Ready for merge if anyone wants to have a look over it.
Most of the general clean up was just syntax and coding style fixes to keep things consistent. I added in some missing type annotation since it's better to be explicit about these things.
Description
This PR fixes the following issues and addresses some general code clean up.
Issues Fixed
Tasks
registerOnTimeoutCallback
andonTimeoutCallback
usage.Final checklist