mirror of
https://github.com/zoriya/flood.git
synced 2026-06-03 11:16:36 +00:00
server: services: properly extends destroy function by calling super
This commit is contained in:
@@ -103,6 +103,8 @@ class HistoryService extends BaseService<HistoryServiceEvents> {
|
||||
if (this.pollTimeout != null) {
|
||||
clearTimeout(this.pollTimeout);
|
||||
}
|
||||
|
||||
super.destroy();
|
||||
}
|
||||
|
||||
fetchCurrentTransferSummary = () => {
|
||||
|
||||
@@ -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() {
|
||||
|
||||
@@ -60,6 +60,8 @@ class TorrentService extends BaseService<TorrentServiceEvents> {
|
||||
if (this.pollTimeout != null) {
|
||||
clearTimeout(this.pollTimeout);
|
||||
}
|
||||
|
||||
super.destroy();
|
||||
}
|
||||
|
||||
fetchTorrentList = () => {
|
||||
|
||||
Reference in New Issue
Block a user