mirror of
https://github.com/zoriya/flood.git
synced 2025-12-06 07:16:18 +00:00
server: torrentService: ensure active interval is applied
Fixes: aa0c7cf3db
This commit is contained in:
@@ -41,7 +41,10 @@ class TorrentService extends BaseService<TorrentServiceEvents> {
|
|||||||
// starts polling when the first streaming listener is added
|
// starts polling when the first streaming listener is added
|
||||||
this.on('newListener', (event) => {
|
this.on('newListener', (event) => {
|
||||||
if (event === 'TORRENT_LIST_DIFF_CHANGE') {
|
if (event === 'TORRENT_LIST_DIFF_CHANGE') {
|
||||||
this.pollInterval = config.torrentClientPollInterval;
|
if (this.pollInterval !== config.torrentClientPollInterval) {
|
||||||
|
this.pollInterval = config.torrentClientPollInterval;
|
||||||
|
this.deferFetchTorrentList();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user