Skip to content

Commit

Permalink
Merge pull request #8585 from Snuffleupagus/issue-8584
Browse files Browse the repository at this point in the history
Check that the `MessageHandler` isn't already terminated in the `onFailure` handler in `src/core/worker.js` (issue 8584)
  • Loading branch information
timvandermeij authored Jun 30, 2017
2 parents 82bd62e + de0e7a9 commit 9e4dcf1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/core/worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -654,6 +654,8 @@ var WorkerMessageHandler = {
}

function onFailure(e) {
ensureNotTerminated();

if (e instanceof PasswordException) {
var task = new WorkerTask('PasswordException: response ' + e.code);
startWorkerTask(task);
Expand Down

0 comments on commit 9e4dcf1

Please sign in to comment.