mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-02-18 21:20:39 +01:00
Increase preset command timeouts
This commit is contained in:
parent
7d34ed56e6
commit
f966c398ef
@ -7433,7 +7433,7 @@ async function connectAPISlash(_, text) {
|
|||||||
toastr.info(`API set to ${text}, trying to connect..`);
|
toastr.info(`API set to ${text}, trying to connect..`);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
await waitUntilCondition(() => online_status !== 'no_connection', 5000, 100);
|
await waitUntilCondition(() => online_status !== 'no_connection', 10000, 100);
|
||||||
console.log('Connection successful');
|
console.log('Connection successful');
|
||||||
} catch {
|
} catch {
|
||||||
console.log('Could not connect after 5 seconds, skipping.');
|
console.log('Could not connect after 5 seconds, skipping.');
|
||||||
|
@ -456,7 +456,7 @@ async function presetCommandCallback(_, name) {
|
|||||||
*/
|
*/
|
||||||
async function waitForConnection() {
|
async function waitForConnection() {
|
||||||
try {
|
try {
|
||||||
await waitUntilCondition(() => online_status !== 'no_connection', 5000, 100);
|
await waitUntilCondition(() => online_status !== 'no_connection', 10000, 100);
|
||||||
} catch {
|
} catch {
|
||||||
console.log('Timeout waiting for API to connect');
|
console.log('Timeout waiting for API to connect');
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user