Merge pull request #8585 from Snuffleupagus/issue-8584

Check that the `MessageHandler` isn't already terminated in the `onFailure` handler in `src/core/worker.js` (issue 8584)
This commit is contained in:
Tim van der Meij 2017-06-30 23:28:59 +02:00 committed by GitHub
commit 9e4dcf156b

View File

@ -654,6 +654,8 @@ var WorkerMessageHandler = {
}
function onFailure(e) {
ensureNotTerminated();
if (e instanceof PasswordException) {
var task = new WorkerTask('PasswordException: response ' + e.code);
startWorkerTask(task);