mirror of
https://github.com/binwiederhier/ntfy.git
synced 2024-11-25 20:59:36 +01:00
Reorder start/stopWorkers
This commit is contained in:
parent
9ba733d4e0
commit
30a8f66db2
1 changed files with 7 additions and 7 deletions
|
@ -139,13 +139,6 @@ export const useAutoSubscribe = (subscriptions, selected) => {
|
||||||
* up "unused" imports. See https://github.com/binwiederhier/ntfy/issues/186.
|
* up "unused" imports. See https://github.com/binwiederhier/ntfy/issues/186.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
const stopWorkers = () => {
|
|
||||||
poller.stopWorker();
|
|
||||||
pruner.stopWorker();
|
|
||||||
accountApi.stopWorker();
|
|
||||||
webPush.stopWorker();
|
|
||||||
};
|
|
||||||
|
|
||||||
const startWorkers = () => {
|
const startWorkers = () => {
|
||||||
poller.startWorker();
|
poller.startWorker();
|
||||||
pruner.startWorker();
|
pruner.startWorker();
|
||||||
|
@ -153,6 +146,13 @@ const startWorkers = () => {
|
||||||
webPush.startWorker();
|
webPush.startWorker();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
const stopWorkers = () => {
|
||||||
|
poller.stopWorker();
|
||||||
|
pruner.stopWorker();
|
||||||
|
accountApi.stopWorker();
|
||||||
|
webPush.stopWorker();
|
||||||
|
};
|
||||||
|
|
||||||
export const useBackgroundProcesses = () => {
|
export const useBackgroundProcesses = () => {
|
||||||
useWebPushTopicListener();
|
useWebPushTopicListener();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue