mirror of
https://github.com/freqtrade/frequi.git
synced 2024-11-10 18:23:50 +00:00
Properly handle full refresh even if one bot is offline
This commit is contained in:
parent
514c8da51a
commit
049513ae01
|
@ -316,7 +316,11 @@ export default function createBotStore(store) {
|
|||
async pingAll({ getters, dispatch }) {
|
||||
await Promise.all(
|
||||
getters.allAvailableBotsList.map(async (e) => {
|
||||
await dispatch(`${e}/ping`);
|
||||
try {
|
||||
await dispatch(`${e}/ping`);
|
||||
} catch {
|
||||
// pass
|
||||
}
|
||||
}),
|
||||
);
|
||||
},
|
||||
|
|
|
@ -462,6 +462,7 @@ export function createBotSubStore(botId: string, botName: string) {
|
|||
return Promise.resolve();
|
||||
} catch (error) {
|
||||
//
|
||||
commit('setIsBotOnline', false);
|
||||
return Promise.reject();
|
||||
}
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue
Block a user