server: services: properly extends destroy function by calling super

This commit is contained in:
Jesse Chan
2020-11-02 20:53:52 +08:00
parent abf9554e31
commit 48220af88b
3 changed files with 6 additions and 0 deletions
+2
View File
@@ -103,6 +103,8 @@ class HistoryService extends BaseService<HistoryServiceEvents> {
if (this.pollTimeout != null) {
clearTimeout(this.pollTimeout);
}
super.destroy();
}
fetchCurrentTransferSummary = () => {
+2
View File
@@ -46,6 +46,8 @@ class TaxonomyService extends BaseService<TaxonomyServiceEvents> {
clientGatewayService.removeListener('PROCESS_TORRENT_LIST_START', this.handleProcessTorrentListStart);
clientGatewayService.removeListener('PROCESS_TORRENT_LIST_END', this.handleProcessTorrentListEnd);
clientGatewayService.removeListener('PROCESS_TORRENT', this.handleProcessTorrent);
super.destroy();
}
getTaxonomy() {
+2
View File
@@ -60,6 +60,8 @@ class TorrentService extends BaseService<TorrentServiceEvents> {
if (this.pollTimeout != null) {
clearTimeout(this.pollTimeout);
}
super.destroy();
}
fetchTorrentList = () => {