DEV: Check if screen-track was destroyed (#17509)

This error is swallowed by `.catch()` but it's an error nonetheless.
This commit is contained in:
Jarek Radosz 2022-07-15 13:35:31 +02:00 committed by GitHub
parent 8ddca5998c
commit 7cf95e6339
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -183,6 +183,10 @@ export default class ScreenTrack extends Service {
},
})
.then(() => {
if (this.isDestroying || this.isDestroyed) {
return;
}
this._ajaxFailures = 0;
const topicController = this._topicController;
if (topicController) {