mirror of
https://github.com/jetkvm/cloud-api.git
synced 2025-09-16 08:38:15 +00:00
commit
8034536083
@ -64,7 +64,7 @@ export const CreateSession = async (req: express.Request, res: express.Response)
|
|||||||
const resp: any = await new Promise((res, rej) => {
|
const resp: any = await new Promise((res, rej) => {
|
||||||
timeout = setTimeout(() => {
|
timeout = setTimeout(() => {
|
||||||
rej(new Error("Timeout waiting for response from ws"));
|
rej(new Error("Timeout waiting for response from ws"));
|
||||||
}, 5000);
|
}, 15000);
|
||||||
|
|
||||||
// Hoist the res and rej functions to be used in the finally block for cleanup
|
// Hoist the res and rej functions to be used in the finally block for cleanup
|
||||||
wsRes = res;
|
wsRes = res;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user