-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(client): prevent race condition in clear context #3425
fix(client): prevent race condition in clear context #3425
Conversation
✅ Build karma 91 completed (commit e93c6c177d by @nicojs) |
✅ Build karma 90 completed (commit e93c6c177d by @nicojs) |
✅ Build karma 2489 completed (commit e93c6c177d by @nicojs) |
4f47465
to
4767154
Compare
✅ Build karma 110 completed (commit 620637fb91 by @nicojs) |
✅ Build karma 2508 completed (commit 620637fb91 by @nicojs) |
✅ Build karma 109 completed (commit 620637fb91 by @nicojs) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, nice.
} else { | ||
iframe.src = policy.createURL(url) | ||
} | ||
} | ||
|
||
/** | ||
* Schedules te next execution after current context is cleared |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the
this.scheduleExecution = function (execution) { | ||
if (reloadingContext) { | ||
// A context reload is in progress. Wait for it to complete before executing. | ||
this.scheduledExecution = execution |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this one character member name difference is hard to read, could we use eg executionScheduled
?
* Schedules te next execution after current context is cleared | ||
* (or is directly started if context is currently not being cleared) | ||
* @param execution {() => void} | ||
* @see https://github.com/karma-runner/karma/issues/3424 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please also add
Fixes #3424
to the PR description.
I think #3597 will fix this, but time will tell. |
Fix #3424